|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.yura.mobile.gui.components.Component net.yura.mobile.gui.components.Panel
public class Panel
JPanel
Field Summary |
---|
Fields inherited from class net.yura.mobile.gui.components.Component |
---|
background, empty, FOCUS_GAINED, FOCUS_LOST, focusable, foreground, height, parent, posX, posY, preferredHeight, preferredWidth, state, theme, width |
Constructor Summary | |
---|---|
Panel()
|
|
Panel(Layout n)
|
Method Summary | |
---|---|
protected void |
addImpl(Component component,
Object cons,
int index)
|
protected void |
breakOutAction(Component component,
int direction,
boolean scrolltothere,
boolean forceFocus)
|
protected void |
doLayout()
redo the layout (SHOULD NOT BE CALLED OUTSIDE THE FRAMEWORK) |
Button |
findMneonicButton(int mnu)
|
Component |
getComponentAt(int x,
int y)
|
int |
getComponentCount()
|
Vector |
getComponents()
|
Hashtable |
getConstraints()
|
protected String |
getDefaultName()
|
Layout |
getLayout()
|
void |
paint(Graphics2D g)
override and call super when things HAVE to be painted |
void |
paintChildren(Graphics2D g)
|
void |
paintComponent(Graphics2D g)
|
void |
remove(Component component)
|
void |
remove(int c)
|
void |
removeAll()
|
void |
setLayout(Layout lt)
|
void |
setSize(int width,
int height)
sets the new size and revaliates the window |
String |
toString()
|
void |
validate()
this means reclac the size of children and then redo the layout |
void |
workoutMinimumSize()
works out the current size of this panel (SHOULD NOT BE CALLED OUTSIDE THE FRAMEWORK) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Panel()
JPanel.JPanel
public Panel(Layout n)
n
- the LayoutManager to useJPanel.JPanel
Method Detail |
---|
protected void addImpl(Component component, Object cons, int index)
addImpl
in class Component
Container.addImpl
protected void breakOutAction(Component component, int direction, boolean scrolltothere, boolean forceFocus)
protected void doLayout()
Container.doLayout
public Button findMneonicButton(int mnu)
public Component getComponentAt(int x, int y)
x
- the x coordinatey
- the y coordinate
Container.getComponentAt
public int getComponentCount()
Container.getComponentCount
public Vector getComponents()
Container.getComponents
public Hashtable getConstraints()
protected String getDefaultName()
getDefaultName
in class Component
public Layout getLayout()
Container.getLayout
public void paint(Graphics2D g)
Component
paint
in class Component
g
- Graphics objectContainer.paint
public void paintChildren(Graphics2D g)
g
- Graphics objectContainer.paintComponents
public void paintComponent(Graphics2D g)
paintComponent
in class Component
JComponent.paintComponent
public void remove(Component component)
component
- The component to removeContainer.remove
public void remove(int c)
c
- The index of the component to removeContainer.remove
public void removeAll()
Container.removeAll
public void setLayout(Layout lt)
lt
- the specified layout managerContainer.setLayout
public void setSize(int width, int height)
setSize
in class Component
width
- new Widthheight
- new HeightComponent.setSize
public String toString()
toString
in class Component
Component.toString
public void validate()
validate
in class Component
JComponent.validate
public void workoutMinimumSize()
workoutMinimumSize
in class Component
JComponent.getMinimumSize
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |