|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.widgets.Widget org.eclipse.swt.widgets.Control org.eclipse.swt.widgets.Scrollable org.eclipse.swt.widgets.Composite com.ibm.commons.swt.data.layouts.PropLayout com.ibm.commons.swt.data.layouts.PropLayout2 com.ibm.commons.swt.data.layouts.PropLayoutGroupBox com.ibm.commons.swt.data.layouts.BasicsPanel
public class BasicsPanel
A basic properties panel which can be used in conjunction with most controls. The contents of the panel is generated automatically based on the attributes available on the control. It is intended that subclasses will override certain methods in order to achieve the desired panel content.
Field Summary | |
---|---|
protected static java.lang.String |
NAME_REGEX
|
Fields inherited from class com.ibm.commons.swt.data.layouts.PropLayout |
---|
TEXT_SUFFIX, UNITS_SUFFIX |
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
BasicsPanel(org.eclipse.swt.widgets.Composite parent,
int style)
Create a new basics panel that will live inside the given parent. |
Method Summary | |
---|---|
protected void |
createAccelerator()
Creates the Accelerator field. |
protected void |
createAutomatedSection()
Creates the contents of the panel based on the attributes of the selected control. |
protected void |
createBidi()
Create the Bidi field. |
protected void |
createEnabled()
Creates the Enabled field. |
protected void |
createHeightAndWidth()
Creates the Height and Width fields. |
protected void |
createLeftContents(org.eclipse.swt.widgets.Composite leftChild)
Create the controls that go in the left column. |
protected org.eclipse.swt.widgets.Control |
createName()
Creates the Name field. |
protected void |
createPostSection()
Create any controls that should go after the auto-generated ones. |
protected void |
createPreSection()
Create any controls that should go before the auto-generated ones. |
protected void |
createReadOnly()
Creates the Read-Only field. |
protected void |
createRightContents(org.eclipse.swt.widgets.Composite rightChild)
Create the group box and initalize its layout. |
protected void |
createShowReadOnlyAsDisabled()
Creates the Show Read-Only As Disabled field. |
protected void |
createTabOrder()
Creates the Tab Order field. |
protected void |
createValue()
Creates the Value field. |
protected void |
createVisible()
Creates the Visible field. |
protected java.lang.String |
getAcceleratorAttr()
Returns the attribute name of the Accelerator attribute. |
protected IValidator |
getAcceleratorValidator()
Returns a validator to be used with the Accelerator field. |
protected java.lang.String |
getBidiAttr()
Returns the attribute name of the Bidi attribute. |
protected StringLookup |
getBidiTypesLookup()
Returns a StringLookup that is to be used to populate the Bidi field. |
protected java.lang.String |
getContextHelpId()
Returns a fully qualified context ID that is to be used as the help id for the panel/composite. |
protected java.lang.String |
getEnabledAttr()
Returns the attribute name of the Enabled attribute. |
protected boolean |
getEnabledDefaultValue()
Returns the default value for the Enabled field. |
protected java.util.List<com.ibm.commons.css.api.CSSLengthUnits> |
getHeightUnits()
|
protected java.lang.String |
getNameAttr()
Returns the attribute name for the Name field (normally 'id'). |
protected IValidator |
getNameValidator()
Returns a validator to be used with the Name field. |
protected int |
getNumLeftColumns()
Return the number of columns in the left child composite. |
protected java.lang.String |
getReadOnlyAttr()
Returns the attribute name of the Read-Only attribute. |
protected boolean |
getReadOnlyDefaultValue()
Returns the default value for the Read-Only field. |
protected java.lang.String |
getShowReadOnlyAsDisabledAttr()
Returns the attribute name of the Show Read Only As Disabled attribute. |
protected java.lang.String |
getTabOrderAttr()
Returns the attribute name of the Tab Order attribute. |
protected IValidator |
getTabOrderValidator()
Returns a validator to be used with the Tab Order field. |
protected java.lang.String |
getValueAttr()
Returns the attribute name of the Value attribute. |
protected java.lang.String |
getVisibleAttr()
Returns the attribute name of the Visible attribute. |
protected boolean |
getVisibleDefaultValue()
Returns the default value for the Visible field. |
protected java.util.List<com.ibm.commons.css.api.CSSLengthUnits> |
getWidthUnits()
|
protected boolean |
hasAccelerator()
Returns true if the panel should have an Accelerator field. |
protected boolean |
hasBidi()
Returns true if the panel should have a Bidi field. |
protected boolean |
hasEnabled()
Returns true if the panel should have an Enabled field. |
protected boolean |
hasGroupBox()
Return true if this basics panel has any options. |
protected boolean |
hasHeight()
Returns true if the panel should have a Height field. |
protected boolean |
hasName()
Returns true if the panel should have a Name field. |
protected boolean |
hasReadOnly()
Returns true if the panel should have a Read-Only field. |
protected boolean |
hasShowReadOnlyAsDisabled()
Returns true if the panel should have a Show Read Only As Disabled field. |
protected boolean |
hasTabOrder()
Returns true if the panel should have a Tab Order field. |
protected boolean |
hasValue()
Returns true if the panel should have a Value field. |
protected boolean |
hasVisible()
Returns true if the panel should have a Visible field. |
protected boolean |
hasWidth()
Returns true if the panel should have a Width field. |
Methods inherited from class com.ibm.commons.swt.data.layouts.PropLayoutGroupBox |
---|
createGroupBoxContents, getGroupTitle, getNumGroupBoxColumns, getNumRightColumns |
Methods inherited from class com.ibm.commons.swt.data.layouts.PropLayout2 |
---|
createChildComposites, createColumnGridData, createContents, getNumParentColumns, isFirstColumnUsed, isSecondColumnUsed |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getBorderWidth, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
---|
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String NAME_REGEX
Constructor Detail |
---|
public BasicsPanel(org.eclipse.swt.widgets.Composite parent, int style)
numColumns
- -
the number of columns in this composite.Method Detail |
---|
protected boolean hasGroupBox()
protected void createPreSection()
protected void createPostSection()
protected java.util.List<com.ibm.commons.css.api.CSSLengthUnits> getHeightUnits()
protected java.util.List<com.ibm.commons.css.api.CSSLengthUnits> getWidthUnits()
protected boolean hasName()
protected boolean hasValue()
protected boolean hasVisible()
protected boolean hasReadOnly()
protected boolean hasEnabled()
protected boolean hasTabOrder()
protected boolean hasAccelerator()
protected boolean hasHeight()
protected boolean hasWidth()
protected boolean hasShowReadOnlyAsDisabled()
protected boolean hasBidi()
protected boolean getEnabledDefaultValue()
protected boolean getVisibleDefaultValue()
protected boolean getReadOnlyDefaultValue()
protected java.lang.String getNameAttr()
protected java.lang.String getAcceleratorAttr()
protected java.lang.String getEnabledAttr()
protected java.lang.String getShowReadOnlyAsDisabledAttr()
protected java.lang.String getTabOrderAttr()
protected java.lang.String getVisibleAttr()
protected java.lang.String getReadOnlyAttr()
protected java.lang.String getValueAttr()
protected IValidator getTabOrderValidator()
protected IValidator getAcceleratorValidator()
protected IValidator getNameValidator()
protected java.lang.String getBidiAttr()
protected StringLookup getBidiTypesLookup()
protected int getNumLeftColumns()
PropLayout2
getNumLeftColumns
in class PropLayout2
protected void createLeftContents(org.eclipse.swt.widgets.Composite leftChild)
PropLayout2
createLeftContents
in class PropLayout2
leftChild
- the left child Compositeprotected void createAutomatedSection()
protected void createRightContents(org.eclipse.swt.widgets.Composite rightChild)
PropLayoutGroupBox
createRightContents
in class PropLayoutGroupBox
rightChild
- the right child Compositeprotected org.eclipse.swt.widgets.Control createName()
protected void createValue()
protected void createVisible()
protected void createReadOnly()
protected void createEnabled()
protected void createShowReadOnlyAsDisabled()
protected void createTabOrder()
protected void createAccelerator()
protected void createHeightAndWidth()
protected void createBidi()
protected java.lang.String getContextHelpId()
PropLayout
getContextHelpId
in class PropLayout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |