|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel chrriis.dj.nativeswing.swtimpl.NSPanelComponent
public abstract class NSPanelComponent
A convenience Swing component superclass, for Swing wrappers of native components.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
NSPanelComponent()
Construct an NativeSwing panel-based component, which by default has a border layout with no margins. |
Method Summary | |
---|---|
static NSOption |
constrainVisibility()
Create an option to apply visibility constraints to the component, which allows mixing lightweight and heavyweight components to a certain extent. |
static NSOption |
destroyOnFinalization()
Create an option to defer the destruction of the component until finalization or explicit disposal, rather than when the component is removed from its component tree. |
void |
disposeNativePeer()
Explicitely dispose the native resources. |
NativeComponent |
getNativeComponent()
Get the native component. |
protected void |
initialize(NativeComponent nativeComponent)
Initialize this class with its native component. |
void |
initializeNativePeer()
Force the native peer to initialize. |
boolean |
isNativePeerDisposed()
Indicate whether the native peer is disposed. |
boolean |
isNativePeerInitialized()
Indicate whether the native peer initialization phase has happened. |
boolean |
isNativePeerValid()
Indicate if the native peer is valid, which means initialized, not disposed, and with a communication channel alive. |
static NSOption |
proxyComponentHierarchy()
Create an option to proxy the component hierarchy, which allows to change the component Z-order. |
void |
runInSequence(Runnable runnable)
Run a command in sequence with other method calls from this class. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NSPanelComponent()
Method Detail |
---|
public static NSOption destroyOnFinalization()
public static NSOption proxyComponentHierarchy()
public static NSOption constrainVisibility()
protected void initialize(NativeComponent nativeComponent)
nativeComponent
- the native component that this component relates to.public void initializeNativePeer()
NSComponent
initializeNativePeer
in interface NSComponent
public void disposeNativePeer()
NSComponent
disposeNativePeer
in interface NSComponent
public boolean isNativePeerDisposed()
NSComponent
isNativePeerDisposed
in interface NSComponent
public boolean isNativePeerInitialized()
NSComponent
isNativePeerInitialized
in interface NSComponent
public boolean isNativePeerValid()
NSComponent
isNativePeerValid
in interface NSComponent
public void runInSequence(Runnable runnable)
NSComponent
runInSequence
in interface NSComponent
runnable
- the command to run in sequence with other method calls.public NativeComponent getNativeComponent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |