|
|||||||||
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.PropLayout1 com.ibm.designer.domino.xsp.api.events.SimpleActionPanel
public class SimpleActionPanel
A Composite that is used by the dialog that sets properties on the simple action via the Add Simple Action dialog and Edit Simple Action dialog.
Field Summary |
---|
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 | |
---|---|
SimpleActionPanel(org.eclipse.swt.widgets.Composite parent)
Constructs a new instance of the class given the parent Composite. |
Method Summary | |
---|---|
protected com.ibm.designer.domino.xsp.util.DCScriptingComposite |
createClientScriptEditor(java.lang.String attrName)
Creates a client side script editor control for the provided attribute. |
protected org.eclipse.swt.layout.GridData |
createControlGD()
|
protected DCCompositeCheckbox |
createDCCompositeCheck(java.lang.String attribute,
java.lang.String label)
Returns a DCCompositeCheckbox control with the specified parameters |
protected DCCompositeCombo |
createDCCompositeCombo(java.lang.String attrName,
ILookup lookup,
boolean hasFirstBlankLine,
boolean isEditable)
Creates a DCCompositeCombo control with the specified parameters |
protected DCCompositeText |
createDCCompositeMultiText(java.lang.String attribute,
int lines)
Creates a multi line DCCompositeText field corresponding to the given attribute |
protected DCCompositeText |
createDCCompositeText(java.lang.String attribute)
Creates a DCCompositeText field corresponding to the given attribute |
protected com.ibm.designer.domino.ide.resources.util.XPagesNavigationRulePrepender |
createDesignElementNamePrepender()
|
protected DCCompositeCombo |
createFormCombo()
Creates a combo box that contains the names of all of the XPages. |
protected com.ibm.designer.domino.xsp.util.DCScriptingComposite |
createScriptEditor(java.lang.String attrName)
Creates a server side script editor control for the provided attribute. |
protected DCCompositeCombo |
createVarComboBox(org.eclipse.swt.widgets.Composite parent)
Creates a DCCompositeCombo that contains the names of all of the data sources on the page |
protected DCCompositeCombo |
createViewCombo()
Creates an editable DCCompositeCombo which contains the ids of all of the viewPanel controls on the current XPage. |
org.eclipse.swt.widgets.Control |
getControl()
Return the composite that is this panel. |
java.util.List<org.eclipse.swt.widgets.Control> |
getControlList()
|
java.util.Map<org.eclipse.swt.widgets.Control,java.lang.String> |
getControlMap()
|
IPanelExtraData |
getExtraData()
Returns the panel data relating to the currently selected node on the XPage |
java.lang.String |
getPropertyName(org.eclipse.swt.widgets.Control control)
Optional method to return the property name referring to a control. |
protected java.lang.String[] |
getViewIds()
|
protected void |
initLayout()
Creates the outer composite and grid layout. |
protected boolean |
isRequired(FacesProperty prop)
Determines if the given property is required |
protected void |
registerControl(org.eclipse.swt.widgets.Control control,
java.lang.String propName)
Register the control so that it's focus listener works properly |
void |
setExtraData(IPanelExtraData data)
Sets the extra panel data on the current panel. |
void |
setPropertyNode(org.w3c.dom.Node node)
Set the node for the property being edited, which may not exist in the DOM. |
java.lang.String[] |
validate()
Return a non-null string array to indicate a problem in validation. |
Methods inherited from class com.ibm.commons.swt.data.layouts.PropLayout1 |
---|
createContents, createContents, getControlId, getNumChildColumns, initChildComposite |
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 |
Methods inherited from interface com.ibm.designer.domino.xsp.api.panels.complex.IComplexPanel |
---|
createPanel |
Constructor Detail |
---|
public SimpleActionPanel(org.eclipse.swt.widgets.Composite parent)
parent
- - a Composite control which will be the parent of the new instance (CANNOT be null).Method Detail |
---|
protected org.eclipse.swt.layout.GridData createControlGD()
protected DCCompositeCombo createFormCombo()
setAttribute
should be called on the resulting
DCCompositeCombo.
DCCompositeCombo
protected com.ibm.designer.domino.ide.resources.util.XPagesNavigationRulePrepender createDesignElementNamePrepender()
protected com.ibm.designer.domino.xsp.util.DCScriptingComposite createScriptEditor(java.lang.String attrName)
attrName
- an attribute name corresponding to a simple action attribute.
protected com.ibm.designer.domino.xsp.util.DCScriptingComposite createClientScriptEditor(java.lang.String attrName)
attrName
- an attribute name corresponding to a simple action attribute.
protected DCCompositeCombo createDCCompositeCombo(java.lang.String attrName, ILookup lookup, boolean hasFirstBlankLine, boolean isEditable)
attrName
- the name of the simple action attribute that this control representslookup
- a lookup of values to populate the combo box withhasFirstBlankLine
- true if the first row in the combo box is to be empyuisEditable
- true if the combo box is to be editable
protected DCCompositeCheckbox createDCCompositeCheck(java.lang.String attribute, java.lang.String label)
attribute
- the name of the simple action attribute that this control representslabel
- the label that is to correspond to this checkbox
protected DCCompositeText createDCCompositeText(java.lang.String attribute)
attribute
- the name of the simple action attribute that this control represents
protected DCCompositeText createDCCompositeMultiText(java.lang.String attribute, int lines)
attribute
- the name of the simple action attribute that this control represents
protected DCCompositeCombo createViewCombo()
public org.eclipse.swt.widgets.Control getControl()
IComplexPanel
getControl
in interface IComplexPanel
this
).public IPanelExtraData getExtraData()
public java.lang.String getPropertyName(org.eclipse.swt.widgets.Control control)
IComplexPropertiesPanel
getPropertyName
in interface IComplexPropertiesPanel
protected java.lang.String[] getViewIds()
protected void initLayout()
PropLayout1.getNumChildColumns()
.
initLayout
in class PropLayout
protected boolean isRequired(FacesProperty prop)
prop
- the FacesProperty whose 'required' value we are querying
protected void registerControl(org.eclipse.swt.widgets.Control control, java.lang.String propName)
public void setExtraData(IPanelExtraData data)
IPanelDataReciever
setExtraData
in interface IPanelDataReciever
data
- extra data which might be needed when creating a properties panelpublic void setPropertyNode(org.w3c.dom.Node node)
IComplexPropertiesPanel
setPropertyNode
in interface IComplexPropertiesPanel
public java.lang.String[] validate()
IComplexPropertiesPanel
validate
in interface IComplexPropertiesPanel
protected DCCompositeCombo createVarComboBox(org.eclipse.swt.widgets.Composite parent)
parent
- the Composite that is to be the parent of the combo
public java.util.Map<org.eclipse.swt.widgets.Control,java.lang.String> getControlMap()
public java.util.List<org.eclipse.swt.widgets.Control> getControlList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |