|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.incrediblesoft.redjey.Component
com.incrediblesoft.redjey.TextComponent
com.incrediblesoft.redjey.Button
public class Button
Field Summary |
---|
Fields inherited from class com.incrediblesoft.redjey.Component |
---|
BOTTOM_LAYOUT, DISABLED, H_EXPAND, HCENTER_LAYOUT, HIGHLIGHTED, LEFT_LAYOUT, NORMAL, PRESSED, RIGHT_LAYOUT, TOP_LAYOUT, TOTAL_STATES, V_EXPAND, VCENTER_LAYOUT |
Constructor Summary | |
---|---|
Button(java.lang.String title)
Constructs button with a given title |
|
Button(java.lang.String title,
CustomImage image)
Constructs button with a given title and image |
|
Button(java.lang.String title,
CustomImage image,
java.lang.String styleClassName)
Constructs button with a given title, image and style class |
|
Button(java.lang.String title,
java.lang.String styleClassName)
Constructs button with a given title and style class |
Method Summary | |
---|---|
CustomImage |
getImage()
Returns image icon |
java.lang.String |
getName()
This method is used to retrieve the appropriate style set from a hashtable of styles |
boolean |
isFocusable()
|
void |
setImage(CustomImage image)
Sets image |
void |
setState(int index)
Sets component state (NORMAL, FOCUSED, DISABLED or custom one). |
void |
tick(int dt)
Called every tick. |
Methods inherited from class com.incrediblesoft.redjey.TextComponent |
---|
getText, setText, toString |
Methods inherited from class com.incrediblesoft.redjey.Component |
---|
addActionListener, addMouseListener, dispatchEvent, fireActionEvent, getAbsoluteRect, getAbsoluteX, getAbsoluteY, getAlignment, getBounds, getClientSize, getContentAlignment, getCurrentStyle, getHeight, getParent, getPreferredSize, getState, getStyle, getStyleClass, getWidth, getX, getY, invalidate, invalidateTree, isFocused, isHighlightable, isVisible, keyPressed, keyReleased, paint, removeActonListener, removeMouseListener, repaint, repaint, setAlignment, setBounds, setContentAlignment, setLocation, setPreferredSize, setSize, setSize, setStyle, setStyle, setStyleClass, setTag, setVisible, setX, setY, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Button(java.lang.String title)
title
- titlepublic Button(java.lang.String title, java.lang.String styleClassName)
title
- titlestyleClassName
- classpublic Button(java.lang.String title, CustomImage image)
title
- titleimage
- imagepublic Button(java.lang.String title, CustomImage image, java.lang.String styleClassName)
title
- titleimage
- imagestyleClassName
- style classMethod Detail |
---|
public java.lang.String getName()
Component
getName
in class Component
public boolean isFocusable()
public void setState(int index)
Component
setState
in class Component
index
- Component state indexpublic CustomImage getImage()
public void setImage(CustomImage image)
image
- imagepublic void tick(int dt)
Component
tick
in class Component
dt
- time in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |