|
||||||||||
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.Container
public class Container
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 | |
---|---|
Container()
Constructs default container |
|
Container(java.lang.String styleClassName)
Constructs container with given style class name |
Method Summary | |
---|---|
Component |
add(Component c)
Adds specified component to this container |
void |
dispatchEvent(AbstractEvent event)
Dispatches event to children |
Component |
getComponent(int index)
Returns component at specified index |
Component |
getComponentAt(int x,
int y,
boolean deepSearch)
Returns component located under the x,y position in this container coordinate system. |
int |
getComponentCount()
Returns the count of components |
Layout |
getLayout()
|
java.lang.String |
getName()
This method is used to retrieve the appropriate style set from a hashtable of styles |
int |
indexOf(Component c)
Returns the index of specified component within this container |
Component |
insertAt(Component c,
int index)
Inserts component at specified index |
void |
pack()
Sets the size of container to preferred one. |
void |
remove(Component c)
Removes specified component from this container |
void |
remove(int index)
Removes component at specified index |
void |
removeAll()
Removes all the components from this container |
void |
setLayout(Layout layout)
Sets layout to this container |
void |
tick(int dt)
Called every tick. |
Methods inherited from class com.incrediblesoft.redjey.Component |
---|
addActionListener, addMouseListener, 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, setState, setStyle, setStyle, setStyleClass, setTag, setVisible, setX, setY, toString, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Container()
public Container(java.lang.String styleClassName)
styleClassName
- style class nameMethod Detail |
---|
public java.lang.String getName()
Component
getName
in class Component
public int getComponentCount()
public Component getComponent(int index)
index
- index of component
public Component getComponentAt(int x, int y, boolean deepSearch)
x
- the x coordinatey
- the y coordinatedeepSearch
- sets search mode. False means that only top-level
component will be returned, true - means perform in-septh search
public Component add(Component c)
c
- component
public Component insertAt(Component c, int index)
c
- componentindex
- index the component is inserted to
public void remove(Component c)
c
- componentpublic void remove(int index)
index
- indexpublic void removeAll()
public int indexOf(Component c)
c
- component
public void setLayout(Layout layout)
layout
- layoutpublic Layout getLayout()
public void pack()
public void dispatchEvent(AbstractEvent event)
Component
dispatchEvent
in class Component
public 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 |