CookSwing Reference: Tags for Basic Objects


 

 

Support This Project

 

stats counter

 

Logo SourceForge.net Logo IntelliJ IDEA

The following basic object tags are defined in CookSwing in addition to the ones in CookXml Common component. The tags in Common component are redefined in CookSwing are listed below as well.

Tag Object Type Attribute Description
boolean Boolean ui
locale (Locale, optional)
Calls UIManager.getBoolean(Object ui) or UIManager.getBoolean(Object ui, Locale locale) to get the boolean value.
color Color value see color converter.
color Color ui
locale (Locale, optional)
Calls UIManager.getColor(Object ui) or UIManager.getColor(Object ui, Locale locale) to get the Color.
cursor Cursor type see cursor converter.
dimension Dimension width
height
complex way of creating a Dimension object.
font Font value see font converter.
font Font ui
locale (Locale, optional)
Calls UIManager.getFont(Object ui) or UIManager.getFont(Object ui, Locale locale) to get the Font.
image Image src see Image converter.
imageicon ImageIcon src see ImageIcon converter.
icon Icon src see Icon converter.
icon Icon ui
locale (Locale, optional)
Calls UIManager.getIcon(Object ui) or UIManager.getIcon(Object ui, Locale locale) to get the icon.
insets Insets top
left
buttom
right
complex way of creating an Insets object.
int Integer ui
locale (Locale, optional)
Calls UIManager.getInt(Object ui) or UIManager.getInt(Object ui, Locale locale) to get the Integer value.
keystroke KeyStroke keychar (char)
modifiers (int, optional)
Calls KeyStroke.getKeyStroke(char keyChar) or KeyStroke.getKeyStroke(Character keyChar, int modifiers) to obtain the KeyStroke object.
Note: modifiers needs to be a value specified in InputEvent.
keystroke KeyStroke keycode (char)
modifiers (int)
onkeyrelease (boolean, optional)
Calls KeyStroke.getKeyStroke(int keyCode, int modifiers) or KeyStroke.getKeyStroke(int keyCode, int modifiers, boolean onKeyRelease) to obtain the KeyStroke object.
Note: keycode needs to be a value specified in KeyEvent and modifiers needs to be a value specified in InputEvent.
keystroke KeyStroke string Calls KeyStroke.getKeyStroke(String s) to obtain the KeyStroke object.
point Point x
y
complex way of creating a Point object.
rectangle Rectangle x
y
width
height
complex way of creating a Rectangle object.

(c) Copyright 2004-2007 Heng Yuan. All rights reserved.

Valid XHTML 1.0! Valid CSS!