|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectswingwt.awt.Component
swingwt.awt.Container
swingwtx.swing.JComponent
swingwtx.swing.JPanel
Nested Class Summary |
Nested classes inherited from class swingwtx.swing.JComponent |
JComponent.InternalFrameSelectionListener |
Field Summary | |
protected boolean |
opaque
|
protected org.eclipse.swt.widgets.Composite |
ppeer
The panel's peer |
Fields inherited from class swingwtx.swing.JComponent |
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap |
Fields inherited from class swingwt.awt.Container |
composite, comps, containerListeners, layout, queuedValidateRequest |
Fields inherited from interface swingwt.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JPanel()
Creates a new JPanel |
|
JPanel(boolean isDoubleBuffered)
Creates a new JPanel with the specified buffering scheme |
|
JPanel(LayoutManager layout)
Creates a new JPanel with the specified layout |
|
JPanel(LayoutManager2 layout)
Creates a new JPanel with the specified layout |
|
JPanel(LayoutManager2 layout,
boolean isDoubleBuffered)
Creates a new JPanel with the specified layout and buffering scheme |
|
JPanel(LayoutManager layout,
boolean isDoubleBuffered)
Creates a new JPanel with the specified layout and buffering scheme |
Method Summary | |
protected Dimension |
calculatePreferredSize()
Overriden to calculate non-realised preferred size. |
int |
getHeight()
Returns the height of the peer |
Dimension |
getSize()
Return how large this panel would like to be if it's inside a ScrollPane, rather than how large it actually is. |
int |
getWidth()
Returns the width of the peer |
void |
setBorder(Border b)
Sets the border for the Panel |
void |
setSwingWTParent(Container parent)
Callback for when this is added to a Container to create the peer and load cached values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.eclipse.swt.widgets.Composite ppeer
protected boolean opaque
Constructor Detail |
public JPanel()
public JPanel(boolean isDoubleBuffered)
isDoubleBuffered
- Whether or not to double buffer paint callbackspublic JPanel(LayoutManager layout)
layout
- The layout manager to usepublic JPanel(LayoutManager layout, boolean isDoubleBuffered)
layout
- The layout manager to useisDoubleBuffered
- Whether or not to double buffer paint callbackspublic JPanel(LayoutManager2 layout)
layout
- The layout manager to usepublic JPanel(LayoutManager2 layout, boolean isDoubleBuffered)
layout
- The layout manager to useisDoubleBuffered
- Whether or not to double buffer paint callbacksMethod Detail |
protected Dimension calculatePreferredSize()
calculatePreferredSize
in class Component
public void setSwingWTParent(Container parent) throws java.lang.Exception
setSwingWTParent
in class JComponent
java.lang.Exception
public void setBorder(Border b)
setBorder
in class JComponent
b
- The new borderpublic Dimension getSize()
getSize
in class Component
public int getWidth()
getWidth
in class Component
public int getHeight()
getHeight
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |