|
JIDE 3.5.15 | ||||||||
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 com.jidesoft.combobox.PopupPanel com.jidesoft.combobox.ButtonPopupPanel com.jidesoft.combobox.InsetsChooserPanel
public class InsetsChooserPanel
A popup panel for insets.
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 com.jidesoft.combobox.ButtonPopupPanel |
---|
_cancelAction, _cancelButton, _okAction, _okButton |
Fields inherited from class com.jidesoft.combobox.PopupPanel |
---|
_previousSelectedObject, SELECTED_BY_MOUSE_ROLLOVER |
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 | |
---|---|
InsetsChooserPanel()
|
|
InsetsChooserPanel(Action okAction,
Action cancelAction)
|
Method Summary | |
---|---|
protected JComponent |
createPreviewComponent()
Creates the preview component. |
protected JComponent |
createPreviewPanel()
Creates the preview panel. |
protected JSpinner |
createSpinner(SpinnerModel model)
Creates the spinner in the panel. |
protected SpinnerModel |
createSpinnerModel()
Creates the spinner model used by the spinners. |
protected String |
getResourceString(String key)
Gets the localized string from resource bundle. |
Insets |
getSelectedInsets()
Gets selected insets. |
Object |
getSelectedObject()
Gets the selected object. |
protected void |
initComponents()
|
static void |
main(String[] args)
|
protected void |
prepareSelectedObject()
|
void |
setLocale(Locale l)
|
protected void |
setPreviewComponentInsets()
Sets the selected insets to preview component. |
void |
setSelectedInsets(Insets insets)
Sets selected insets. |
void |
setSelectedObject(Object object)
Sets the selected object and fire ItemEvent . |
Methods inherited from class com.jidesoft.combobox.ButtonPopupPanel |
---|
createButtonPanel, getCancelAction, getDefaultButton, getOkAction, getOkButton, setCancelAction, setOkAction |
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 InsetsChooserPanel()
public InsetsChooserPanel(Action okAction, Action cancelAction)
Method Detail |
---|
protected void setPreviewComponentInsets()
protected void initComponents()
protected String getResourceString(String key)
key
- the key
public void setLocale(Locale l)
setLocale
in class Component
protected SpinnerModel createSpinnerModel()
protected JSpinner createSpinner(SpinnerModel model)
model
- the spinner model
protected JComponent createPreviewPanel()
protected JComponent createPreviewComponent()
setPreviewComponentInsets()
to make the new insets take effect when the insets are
changed.
setPreviewComponentInsets()
public Insets getSelectedInsets()
setSelectedInsets(java.awt.Insets)
public void setSelectedInsets(Insets insets)
insets
- the insetspublic Object getSelectedObject()
PopupPanel
getSelectedObject
in class PopupPanel
protected void prepareSelectedObject()
prepareSelectedObject
in class ButtonPopupPanel
public void setSelectedObject(Object object)
PopupPanel
ItemEvent
. It will still fire event even the new selected object
is the same as old selected object.
setSelectedObject
in class PopupPanel
object
- new selected objectpublic static void main(String[] args)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |