net.yura.mobile.gui.layout
Class XULLoader
java.lang.Object
net.yura.mobile.gui.layout.XULLoader
public class XULLoader
- extends Object
- Author:
- Yura Mamyrin
Method Summary |
static int |
adjustSizeToDensity(int value)
|
Component |
find(String name)
|
Hashtable |
getFormData()
|
Hashtable |
getGroups()
|
static Hashtable |
getProperties(String value)
read this:Thinlet Properties |
Component |
getRoot()
|
static XULLoader |
load(InputStream is,
ActionListener listener)
|
static XULLoader |
load(InputStream is,
ActionListener listener,
Properties properties)
|
void |
load(Reader reader,
ActionListener listener)
|
void |
load(Reader reader,
ActionListener listener,
Properties properties)
|
Icon |
loadIcon(String value)
|
static int |
position(String pos,
boolean horror)
|
protected void |
readButton(org.kxml2.io.KXmlParser parser,
Button button,
ActionListener listener)
|
protected Button |
readCheckbox(org.kxml2.io.KXmlParser parser,
ActionListener listener)
|
void |
readLabel(org.kxml2.io.KXmlParser parser,
Label label)
|
Object |
readObject(org.kxml2.io.KXmlParser parser,
ActionListener listener)
|
protected Panel |
readPanel(org.kxml2.io.KXmlParser parser,
Panel panel,
ActionListener listener)
|
protected void |
readTextComponent(org.kxml2.io.KXmlParser parser,
Component text,
ActionListener listener)
|
GridBagConstraints |
readUIObject(org.kxml2.io.KXmlParser parser,
Component comp,
ActionListener listener)
|
void |
setFormData(Hashtable data)
|
void |
swapComponent(String name,
Component comp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VK_ALT
public static final int VK_ALT
- This is the SAME as the
KeyEvent.KEY_MENU
except it has a positive value for use in thinlet xml
- See Also:
KeyEvent.VK_ALT
,
KeyEvent.KEY_MENU
,
Constant Field Values
VK_ESCAPE
public static final int VK_ESCAPE
- This is the SAME as the
KeyEvent.KEY_END
except it has a positive value for use in thinlet xml
- See Also:
KeyEvent.VK_ESCAPE
,
KeyEvent.KEY_END
,
Constant Field Values
VK_F1
public static final int VK_F1
- This is the SAME as the
KeyEvent.KEY_SOFTKEY1
except it has a positive value for use in thinlet xml
- See Also:
KeyEvent.VK_F1
,
KeyEvent.KEY_SOFTKEY1
,
Constant Field Values
VK_F2
public static final int VK_F2
- This is the SAME as the
KeyEvent.KEY_SOFTKEY2
except it has a positive value for use in thinlet xml
- See Also:
KeyEvent.VK_F2
,
KeyEvent.KEY_SOFTKEY2
,
Constant Field Values
XULLoader
public XULLoader()
adjustSizeToDensity
public static int adjustSizeToDensity(int value)
find
public Component find(String name)
getFormData
public Hashtable getFormData()
getGroups
public Hashtable getGroups()
getProperties
public static Hashtable getProperties(String value)
- read this:Thinlet Properties
getRoot
public Component getRoot()
load
public static XULLoader load(InputStream is,
ActionListener listener)
throws Exception
- Throws:
Exception
load
public static XULLoader load(InputStream is,
ActionListener listener,
Properties properties)
throws Exception
- Throws:
Exception
load
public void load(Reader reader,
ActionListener listener)
throws Exception
- Throws:
Exception
load
public void load(Reader reader,
ActionListener listener,
Properties properties)
throws Exception
- Throws:
Exception
loadIcon
public Icon loadIcon(String value)
position
public static int position(String pos,
boolean horror)
readButton
protected void readButton(org.kxml2.io.KXmlParser parser,
Button button,
ActionListener listener)
readCheckbox
protected Button readCheckbox(org.kxml2.io.KXmlParser parser,
ActionListener listener)
readLabel
public void readLabel(org.kxml2.io.KXmlParser parser,
Label label)
readObject
public Object readObject(org.kxml2.io.KXmlParser parser,
ActionListener listener)
throws Exception
- Throws:
Exception
readPanel
protected Panel readPanel(org.kxml2.io.KXmlParser parser,
Panel panel,
ActionListener listener)
readTextComponent
protected void readTextComponent(org.kxml2.io.KXmlParser parser,
Component text,
ActionListener listener)
readUIObject
public GridBagConstraints readUIObject(org.kxml2.io.KXmlParser parser,
Component comp,
ActionListener listener)
throws Exception
- Throws:
Exception
setFormData
public void setFormData(Hashtable data)
swapComponent
public void swapComponent(String name,
Component comp)