## Custom Attributes

### Declared in : org.swixml.Parser

#### Attributes

Attribute Name | Attribute Type (after conversion)
--- | ---
bundle | String (resource bundle name) root element attribute Example: bundle='locale.GermanStrings'
constraints | layout constraint, descr. how to place this object into its parent container Example: constraints='BorderLayout.CENTER'
id | String unique id to find this component after rendering Example: id='Lbl_OK'
include | String (file#id) Includes the content of a tag defined in an external xml document. (works in compliance with W3C XLink and XPointer specs.) Example: <mytag include="tags.xml#xyz"/> The content of the tag with the id="xyz" in the external document "tags.xml" gets added at run-time into mytag's content.
initclass | String Class to deliver initialization object to be passed into tag object constructor. If the class implements a static getInstance() method then this will be used instead of constructing a parameter object. Example: <table initclass='myPackage.MyTableModel'> with MyTableModel extends TableModel ..
locale | String (used to construct a Locale object) Example: locale='de'
macos_about | String (true or false) flags an action to be the default about action (used only on MAC OS X) requires an Action attribute in the same tag Example: macos_about='true'
macos_openapp | String (true or false) flags an action to be the default openApplication action (used only on MAC OS X) requires an Action attribute in the same tag Example: macos_openapp='true'
macos_openfile | String (true or false) flags an action to be the default openFile action (used only on MAC OS X) requires an Action attribute in the same tag Example: macos_openfile='true'
macos_print | String (true or false) flags an action to be the default Print action (used only on MAC OS X) requires an Action attribute in the same tag Example: macos_print='true'
macos_preferences | String (true or false) flags an action to be the default Preferences action (used only on MAC OS X) requires an Action attribute in the same tag Example: macos_preferences='true'
macos_quit | String (true or false) flags an action to be the default Quit action (used only on MAC OS X) requires an Action attribute in the same tag Example: macos_quit='true'
macos_reopen | String (true or false) flags an action to be the default application Reopen action (used only on MAC OS X) requires an Action attribute in the same tag Example: macos_reopen='true'
plaf | String (PLAF class name) (ignored on MAC OS X) root element attribute Example: plaf='com.sun.java.swing.plaf.windows.WindowsLookAndFeel'
refid | String (id) Example: refid='LBL_OK' The refid attribute can be used to clone attributes from another tag. While this doesn't work recursively, it doesn't matter what the tag name is and will just clone all the attributes that are not already defined for the tag. Therefore, provided attributes are not overwritten. The tag providing the attributes can be anywhere, it does not have to be parsed/rendered already.

Copyright © 2002 - 2004 - Wolf Paulus swixml.org. All Rights Reserved.