|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.microedition.lcdui.Item javax.microedition.lcdui.CustomItem net.sourceforge.mewt.tree.Tree
public class Tree
The Class Tree.
Field Summary |
---|
Fields inherited from class javax.microedition.lcdui.Item |
---|
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN |
Constructor Summary | |
---|---|
Tree(javax.microedition.lcdui.Form parent,
java.lang.String rootName)
Instantiates a new tree. |
Method Summary | |
---|---|
void |
addTreeListener(TreeListener tl)
Adds the tree listener. |
void |
applyTheme(Theme t)
Apply theme. |
int |
getBackground()
Gets the background. |
int |
getBorder1()
Gets the border1. |
int |
getBorder2()
Gets the border2. |
int |
getButtonBgDark()
Gets the button bg dark. |
int |
getButtonBgLight()
Gets the button bg light. |
int |
getButtonSelDark()
Gets the button sel dark. |
int |
getButtonSelLight()
Gets the button sel light. |
int |
getForeground()
Gets the foreground. |
javax.microedition.lcdui.Image |
getLeafImage()
Gets the leaf image. |
javax.microedition.lcdui.Image |
getNodeClosedImage()
Gets the node closed image. |
javax.microedition.lcdui.Image |
getNodeOpenImage()
Gets the node open image. |
Node |
getRoot()
Gets the root. |
int |
getSelectedBackground()
Gets the selected background. |
int |
getSelectedForeground()
Gets the selected foreground. |
Node |
getSelectedNode()
Gets the selected node. |
int |
getTitleBackground()
Gets the title background. |
int |
getTitleForeground()
Gets the title foreground. |
void |
keyPressed(int key)
|
void |
notifyLayout()
Notify layout. |
void |
removeTreeListener(TreeListener tl)
Removes the tree listener. |
void |
setBackground(int background)
Sets the background. |
void |
setBorder1(int c)
Sets the border1. |
void |
setBorder2(int c)
Sets the border2. |
void |
setForeground(int foreground)
Sets the foreground. |
void |
setLeafImage(javax.microedition.lcdui.Image leafImage)
Sets the leaf image. |
void |
setNodeClosedImage(javax.microedition.lcdui.Image nodeClosedImage)
Sets the node closed image. |
void |
setNodeOpenImage(javax.microedition.lcdui.Image nodeOpenImage)
Sets the node open image. |
void |
setSelectedBackground(int selectColor)
Sets the selected background. |
void |
setSelectedForeground(int selectedForeground)
Sets the selected foreground. |
Methods inherited from class javax.microedition.lcdui.CustomItem |
---|
getGameAction |
Methods inherited from class javax.microedition.lcdui.Item |
---|
addCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tree(javax.microedition.lcdui.Form parent, java.lang.String rootName)
parent
- the parentrootName
- the root nameMethod Detail |
---|
public void notifyLayout()
public Node getRoot()
public int getSelectedBackground()
Themeable
getSelectedBackground
in interface Themeable
public void setSelectedBackground(int selectColor)
Themeable
setSelectedBackground
in interface Themeable
selectColor
- the new selected backgroundpublic Node getSelectedNode()
public void keyPressed(int key)
keyPressed
in class javax.microedition.lcdui.CustomItem
public void addTreeListener(TreeListener tl)
tl
- the tlpublic void removeTreeListener(TreeListener tl)
tl
- the tlpublic int getForeground()
Themeable
getForeground
in interface Themeable
public void setForeground(int foreground)
Themeable
setForeground
in interface Themeable
foreground
- the new foregroundpublic int getBackground()
Themeable
getBackground
in interface Themeable
public void setBackground(int background)
Themeable
setBackground
in interface Themeable
background
- the new backgroundpublic void applyTheme(Theme t)
Themeable
applyTheme
in interface Themeable
t
- the tpublic int getSelectedForeground()
Themeable
getSelectedForeground
in interface Themeable
public void setSelectedForeground(int selectedForeground)
Themeable
setSelectedForeground
in interface Themeable
selectedForeground
- the new selected foregroundpublic javax.microedition.lcdui.Image getLeafImage()
public void setLeafImage(javax.microedition.lcdui.Image leafImage)
leafImage
- the new leaf imagepublic javax.microedition.lcdui.Image getNodeOpenImage()
public void setNodeOpenImage(javax.microedition.lcdui.Image nodeOpenImage)
nodeOpenImage
- the new node open imagepublic javax.microedition.lcdui.Image getNodeClosedImage()
public void setNodeClosedImage(javax.microedition.lcdui.Image nodeClosedImage)
nodeClosedImage
- the new node closed imagepublic int getBorder1()
Themeable
getBorder1
in interface Themeable
public int getBorder2()
Themeable
getBorder2
in interface Themeable
public int getButtonBgDark()
Themeable
getButtonBgDark
in interface Themeable
public int getButtonBgLight()
Themeable
getButtonBgLight
in interface Themeable
public int getButtonSelDark()
Themeable
getButtonSelDark
in interface Themeable
public int getButtonSelLight()
Themeable
getButtonSelLight
in interface Themeable
public int getTitleBackground()
Themeable
getTitleBackground
in interface Themeable
public int getTitleForeground()
Themeable
getTitleForeground
in interface Themeable
public void setBorder1(int c)
Themeable
setBorder1
in interface Themeable
c
- the new border1public void setBorder2(int c)
Themeable
setBorder2
in interface Themeable
c
- the new border2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |