com.sapportals.wcm.app.xfbuilder.client.form.item

Class FormItem

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by com.sapportals.wcm.app.xfbuilder.client.form.item.FormItem
All Implemented Interfaces:
IXFObjectConnectionListener, IXFObjectConnectionNotifier, Transferable, MouseListener, MouseMotionListener, MouseWheelListener, EventListener, Accessible, MouseInputListener, MutableTreeNode, TreeNode
Direct Known Subclasses:
XFBrowser, XFButton, XFCheckBox, XFComboBox, XFGroup, XFGroupControl, XFHLine, XFHTMLCode, XFHTMLEditor, XFHTMLInclude, XFImage, XFItem, XFJavaScriptCode, XFLabel, XFLine, XFRadioButton, XFTextArea, XFTextField, XFTimestampEdit

public class FormItem
extends MouseInputAdapter
implements MutableTreeNode, Transferable, IXFObjectConnectionListener, IXFObjectConnectionNotifier, Accessible

Represents a UI-Element(-model) with own hierarchical and XML-DOM representation and treeview representation. Includes parts of its event handling but for performance reasons this is more and more moved to the central FormManager. It's view is a member of it. A FormItem is instantiated by a subclass which extends it with item specific features. Copyright 2004 SAP AG


Nested Class Summary
static class FormItem.ChangeFormClassAction
           
 
Field Summary
static String BOOLEAN
           
static String BYTE
           
static String CHAR
           
protected  Vector children
           
protected  boolean childrenAllowed
           
static String COLOR
           
 int colSpan
           
protected  JPopupMenu contextMenu
           
protected  com.sapportals.wcm.app.xfbuilder.client.form.item.FormItem.ContextMenuActionListener contextMenuListener
           
protected  Element domrep
           
static String DOUBLE
           
static String FONT
           
static DataFlavor formItemFlavor
           
protected  boolean hasView
           
protected  String id
           
 int insertxoffset
           
 int insertyoffset
           
static String INT
           
protected  Rectangle internalBounds
           
protected  boolean isLeaf
           
protected  boolean isRoot
           
 int lastHitRow
           
protected  Category logCat
           
static String LONG
           
protected  boolean marked
           
static int maxFontSize
           
static int minFontSize
           
protected  Set propertiesNeedUpdate
           
protected  JPopupMenu rootContextMenu
           
 int rowSpan
           
static String SHORT
           
static String STRING
           
protected  FormItem that
           
protected  FormItemView theView
           
protected  Object userObject
           
protected  Set visProperties
           
static String VOID
           
 int xoffset
           
 int yoffset
           
 
Constructor Summary
FormItem(EditorManager m, FormItemFactory fac)
          Constructor declaration
FormItem(EditorManager m, FormItemFactory fac, Node n)
          Constructor declaration
 
Method Summary
 void add(FormItem child)
           
 void add(FormItem child, boolean register)
          Method declaration
protected  JMenuItem addContextMenuEntry(String s)
           
protected  JMenuItem addContextMenuEntry(String s, int idx)
           
 void addFilterColor(String key, Color color)
           
 void addFilterColor(String key, int r, int g, int b)
           
 void addProperty(Property p)
           
 void addWithoutView(FormItem child)
           
 void addXFObjectConnectionListener(IXFObjectConnectionListener l)
          Method declaration
 boolean allowsChildren()
           
 boolean allowsPaste()
           
 XFUndoableEdit autoResizeParent()
           
 void beginPropTransaction()
           
protected  void bindViewMethods()
           
 void changed(XFObjectConnectionEvent e)
           
 FormItem.ChangeFormClassAction checkInsert(FormItem[] item)
           
 void checkMandatoryProperty(String property)
           
 void checkReadOnlyProperty(String property)
           
 void checkValueListProperty(String property)
           
 ListIterator childIterator(int idx)
           
 Enumeration children()
           
 void classChanged(String cl)
           
 void connected(XFObjectConnectionEvent e)
           
protected  void connectMethod(Property prop, String jMethod, Class[] jParams)
           
protected  void connectMethod(Property prop, String jMethod, String[] jParams)
          Method declaration
 boolean contains(FormItem it)
          Method declaration
 FormItem copy()
           
 FormItem copy(boolean registerCopy, boolean convertForm)
           
 FormItem copyForm()
           
 void createDefaultChildren()
           
 void deleted(XFObjectConnectionEvent e)
           
 void deSelected(XFObjectConnectionEvent e)
           
 void destroy()
           
 void destroyAllChildren()
           
 void disconnected(XFObjectConnectionEvent e)
           
 Color filterColor(Color color)
           
protected  void fireChanged(XFObjectConnectionEvent e)
           
protected  void fireConnected(XFObjectConnectionEvent e)
           
protected  void fireDeleted(XFObjectConnectionEvent e)
           
protected  void fireDeSelected(XFObjectConnectionEvent e)
           
protected  void fireDisConnected(XFObjectConnectionEvent e)
           
protected  void fireSelected(XFObjectConnectionEvent e)
           
 AccessibleContext getAccessibleContext()
           
 Set getAllowedChildClasses()
           
 boolean getAllowsChildren()
           
 Rectangle getBounds()
           
 String getCaption()
          Method declaration
 TreeNode getChildAt(int childIndex)
          Method declaration
 int getChildCount()
          Method declaration
 SoapClient getClient()
           
 JPopupMenu getContextMenu()
          Method declaration
 Point getContextMenuLocation()
           
protected  DataManager getDataManager()
           
 Dimension getDimensionFromDOM()
          Method declaration
 String getDisplayName()
           
 String getDisplayProperty()
           
 Document getDocument()
           
 Element getDOMRep()
          Method declaration
 String getDOMRepAsAttribString()
           
 String getDOMRepAsString()
          Method declaration
 EditorManager getEditorManager()
           
 FormItemFactory getFormItemFactory()
           
 FormManager getFormManager()
           
 String getHRName()
          Method declaration
 int getIndex(TreeNode node)
          Method declaration
 JComponent getJCView()
          Method declaration
 Point getLocationFromDOM()
          Method declaration
 int getLotIdx()
           
 TreeNode getParent()
          Method declaration
 Collection getProperties()
           
 Collection getProperties(boolean sorted)
           
 Property getProperty(String key)
          Method declaration
 Object getRegisterLock()
           
 FormItem getRoot()
           
 String getTagName()
          Method declaration
 Object getTransferData(DataFlavor flavor)
          Method declaration
 DataFlavor[] getTransferDataFlavors()
          Method declaration
 Point getTranslationFrom(FormItem ancestor)
           
 Object getUserObject()
          Method declaration
 FormItemView getView()
          Method declaration
 Collection getVisibleProperties()
           
 Collection getVisibleProperties(boolean sorted)
           
 boolean hasProperty(String key)
           
 void highlightLinked()
           
 void highlightLinkedControl()
           
protected  void init()
          Initialzes the view and sets up event handling
protected  void initContextMenu()
          This is called right before the item's context menu is opened.
static void initResourceBundle(Locale loc)
           
protected  void initRootContextMenu()
           
 void insert(MutableTreeNode child, int index)
          Method declaration
 void insert(MutableTreeNode child, int index, boolean register)
           
protected  void insertAddItemToContextMenu(JPopupMenu menu, int insertIdx)
           
 boolean isAncestorOf(FormItem xchild)
          Method declaration
 boolean isChildAllowed(FormItem item)
           
 boolean isChildClassAllowed(String cl)
           
 boolean isDataFlavorSupported(DataFlavor flavor)
          Method declaration
 boolean isDocked()
           
 boolean isDynamicControl()
           
 boolean isEditingControl()
           
 boolean isLeaf()
          Method declaration
 boolean isMarked()
          Method declaration
 boolean isPropertyVisible(String key)
           
 boolean isRegistered()
           
 boolean isRoot()
          Method declaration
 boolean link(FormItem it)
           
 boolean linkControl(FormItem it)
           
 void mapItem(String id)
           
 void migrateProps(Node n)
          Migrates the DOM version of node n into the current DOM version.
 void mouseClicked(MouseEvent me)
          Method declaration
 void mousePressed(MouseEvent me)
          Method declaration
 void mouseReleased(MouseEvent me)
          Method declaration
 void mySetFont(Font f)
           
 void mySetFont(Object o)
           
 void mySetFont(String s)
          Method declaration Different name needed to successfully "override" JComponent method
 FormItem next()
           
 FormItem next(boolean ignoreChildren)
           
 void notifySelected(boolean b)
           
 void paintMarked(Graphics g)
          Method declaration
 FormItem paste(FormItem it)
           
 void prepareForGroup()
           
 FormItem previous()
           
 void propagateViewOrientation()
           
 boolean queryRemove()
          Queries to remove the item.
protected  void readXMLSpec(Class c)
          Method declaration
 void remove(int index)
          Method declaration
 void remove(MutableTreeNode node)
          Method declaration
 void removeAllChildren()
           
 void removeAllFilterColors()
           
protected  void removeContextMenuEntry(JMenuItem item)
           
 void removeFilterColor(String key)
           
 void removeFromParent()
          Method declaration
 void removeXFObjectConnectionListener(IXFObjectConnectionListener l)
           
 void selected(XFObjectConnectionEvent e)
           
 void setAlign(String s)
          Method declaration
 void setAllowedChildClasses(String str)
           
 void setAllowsChildren(boolean b)
          Method declaration
 void setBounds(Rectangle r)
           
 void setColor(Color c)
          Method declaration
 void setColor(Object o)
           
 void setColor(String s)
          Method declaration
 void setContextMenuLocation(int x, int y)
           
 void setDecoration(String s)
          Method declaration
 void setDocked(boolean b)
           
 void setDOMRep(Node node)
          Method declaration
 void setDOMRep(Node node, boolean migrateNode)
          Method declaration
 void setFontSize(String s)
           
 void setLeaf(boolean b)
          Method declaration
 void setLocationX(int x)
          Method declaration
 void setLocationY(int y)
          Method declaration
 void setLotIdx(int i)
           
 void setMarked(boolean b)
          Method declaration
 void setParent(MutableTreeNode newParent)
          Method declaration
 void setProperty(String key, Object value, boolean propagate)
           
 void setPropertyRef(String s)
          Method declaration
 void setRegistered(boolean b)
           
 void setSchemaRef(String s)
           
 void setSizeX(String wString)
          Method declaration
 void setSizeY(String hString)
          Method declaration
 void setUserObject(Object object)
          Method declaration
 void setView(FormItemView v)
          Method declaration
 void sortSubTree()
           
protected  void syncViewWithDOM()
          Method declaration
 Boolean toggleDocked()
           
 String toString()
          Method declaration
 void unhighlightLinked()
          Removes the color filter from the item linked to this one.
 void unhighlightLinkedControl()
           
 void updateVisibleProperties()
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Field Detail

hasView

protected boolean hasView

logCat

protected Category logCat

that

protected FormItem that

rowSpan

public int rowSpan

colSpan

public int colSpan

lastHitRow

public int lastHitRow

xoffset

public int xoffset

yoffset

public int yoffset

insertxoffset

public int insertxoffset

insertyoffset

public int insertyoffset

minFontSize

public static final int minFontSize
See Also:
Constant Field Values

maxFontSize

public static final int maxFontSize
See Also:
Constant Field Values

STRING

public static final String STRING
See Also:
Constant Field Values

COLOR

public static final String COLOR
See Also:
Constant Field Values

FONT

public static final String FONT
See Also:
Constant Field Values

BOOLEAN

public static final String BOOLEAN
See Also:
Constant Field Values

CHAR

public static final String CHAR
See Also:
Constant Field Values

BYTE

public static final String BYTE
See Also:
Constant Field Values

SHORT

public static final String SHORT
See Also:
Constant Field Values

INT

public static final String INT
See Also:
Constant Field Values

LONG

public static final String LONG
See Also:
Constant Field Values

DOUBLE

public static final String DOUBLE
See Also:
Constant Field Values

VOID

public static final String VOID
See Also:
Constant Field Values

marked

protected boolean marked

id

protected String id

internalBounds

protected Rectangle internalBounds

contextMenu

protected JPopupMenu contextMenu

contextMenuListener

protected com.sapportals.wcm.app.xfbuilder.client.form.item.FormItem.ContextMenuActionListener contextMenuListener

rootContextMenu

protected JPopupMenu rootContextMenu

theView

protected FormItemView theView

domrep

protected Element domrep

isLeaf

protected boolean isLeaf

isRoot

protected boolean isRoot

userObject

protected Object userObject

children

protected Vector children

childrenAllowed

protected boolean childrenAllowed

visProperties

protected Set visProperties

propertiesNeedUpdate

protected Set propertiesNeedUpdate

formItemFlavor

public static DataFlavor formItemFlavor
Constructor Detail

FormItem

public FormItem(EditorManager m,
                FormItemFactory fac)
Constructor declaration

See Also:

FormItem

public FormItem(EditorManager m,
                FormItemFactory fac,
                Node n)
Constructor declaration

Parameters:
n -
See Also:
Method Detail

initResourceBundle

public static void initResourceBundle(Locale loc)

getLocationFromDOM

public Point getLocationFromDOM()
Method declaration

Returns:
See Also:

getDimensionFromDOM

public Dimension getDimensionFromDOM()
Method declaration

Returns:
See Also:

readXMLSpec

protected void readXMLSpec(Class c)
Method declaration

Parameters:
c -
See Also:

copyForm

public FormItem copyForm()

copy

public FormItem copy()

copy

public FormItem copy(boolean registerCopy,
                     boolean convertForm)

paste

public FormItem paste(FormItem it)

setDOMRep

public void setDOMRep(Node node)
Method declaration

Parameters:
node -
See Also:

setDOMRep

public void setDOMRep(Node node,
                      boolean migrateNode)
Method declaration

Parameters:
node -
See Also:

syncViewWithDOM

protected void syncViewWithDOM()
Method declaration

See Also:

setPropertyRef

public void setPropertyRef(String s)
Method declaration

Parameters:
s -
See Also:

setSchemaRef

public void setSchemaRef(String s)

getProperty

public Property getProperty(String key)
Method declaration

Parameters:
key -
el -
Returns:
See Also:

getProperties

public Collection getProperties()

getProperties

public Collection getProperties(boolean sorted)

getVisibleProperties

public Collection getVisibleProperties()

isPropertyVisible

public boolean isPropertyVisible(String key)

getVisibleProperties

public Collection getVisibleProperties(boolean sorted)

hasProperty

public boolean hasProperty(String key)

init

protected void init()
Initialzes the view and sets up event handling

See Also:

getContextMenu

public JPopupMenu getContextMenu()
Method declaration

Returns:
See Also:

setLeaf

public void setLeaf(boolean b)
Method declaration

Parameters:
b -
See Also:

setLocationX

public void setLocationX(int x)
Method declaration

Parameters:
sx -
See Also:

setLocationY

public void setLocationY(int y)
Method declaration

Parameters:
sy -
See Also:

setColor

public void setColor(String s)
Method declaration

Parameters:
s -
See Also:

setColor

public void setColor(Object o)

setColor

public void setColor(Color c)
Method declaration

Parameters:
c -
See Also:

mySetFont

public void mySetFont(String s)
Method declaration Different name needed to successfully "override" JComponent method

Parameters:
s -
See Also:

mySetFont

public void mySetFont(Object o)

mySetFont

public void mySetFont(Font f)

setFontSize

public void setFontSize(String s)

setDecoration

public void setDecoration(String s)
Method declaration

Parameters:
s -
See Also:

autoResizeParent

public XFUndoableEdit autoResizeParent()

setSizeX

public void setSizeX(String wString)
Method declaration

Parameters:
swidth -
See Also:

setSizeY

public void setSizeY(String hString)
Method declaration

Parameters:
sheight -
See Also:

getView

public FormItemView getView()
Method declaration

Returns:
See Also:

getJCView

public JComponent getJCView()
Method declaration

Returns:
See Also:

setView

public void setView(FormItemView v)
Method declaration

Parameters:
v -
See Also:

getHRName

public String getHRName()
Method declaration

Returns:
See Also:

setMarked

public void setMarked(boolean b)
Method declaration

Parameters:
b -
See Also:

isMarked

public boolean isMarked()
Method declaration

Returns:
See Also:

getCaption

public String getCaption()
Method declaration

Returns:
See Also:

add

public void add(FormItem child,
                boolean register)
Method declaration

Parameters:
child -
See Also:

add

public void add(FormItem child)

beginPropTransaction

public void beginPropTransaction()

bindViewMethods

protected void bindViewMethods()

insert

public void insert(MutableTreeNode child,
                   int index)
Method declaration

Specified by:
insert in interface MutableTreeNode
Parameters:
child -
index -
See Also:

insert

public void insert(MutableTreeNode child,
                   int index,
                   boolean register)

addWithoutView

public void addWithoutView(FormItem child)

queryRemove

public boolean queryRemove()
Queries to remove the item. This default implementation always allows to delete the item. It can be overridden to add a confirm dialog, for example (see XFGroup).

Returns:
whether the item is allowed to be removed

remove

public void remove(int index)
Method declaration

Specified by:
remove in interface MutableTreeNode
Parameters:
index -
See Also:

destroyAllChildren

public void destroyAllChildren()

removeAllChildren

public void removeAllChildren()

remove

public void remove(MutableTreeNode node)
Method declaration

Specified by:
remove in interface MutableTreeNode
Parameters:
node -
See Also:

removeFromParent

public void removeFromParent()
Method declaration

Specified by:
removeFromParent in interface MutableTreeNode
See Also:

setParent

public void setParent(MutableTreeNode newParent)
Method declaration

Specified by:
setParent in interface MutableTreeNode
Parameters:
newParent -
See Also:

setProperty

public void setProperty(String key,
                        Object value,
                        boolean propagate)

setUserObject

public void setUserObject(Object object)
Method declaration

Specified by:
setUserObject in interface MutableTreeNode
Parameters:
object -
See Also:

getUserObject

public Object getUserObject()
Method declaration

Returns:
See Also:

initContextMenu

protected void initContextMenu()
This is called right before the item's context menu is opened. Items can be enabled or disabled here. Descendent classes should reimplement it.


allowsPaste

public boolean allowsPaste()

initRootContextMenu

protected void initRootContextMenu()

children

public Enumeration children()
Specified by:
children in interface TreeNode

childIterator

public ListIterator childIterator(int idx)

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface TreeNode

setAllowsChildren

public void setAllowsChildren(boolean b)
Method declaration

Parameters:
b -
See Also:

setAlign

public void setAlign(String s)
Method declaration

Parameters:
s -
See Also:

getChildAt

public TreeNode getChildAt(int childIndex)
Method declaration

Specified by:
getChildAt in interface TreeNode
Parameters:
childIndex -
Returns:
See Also:

getChildCount

public int getChildCount()
Method declaration

Specified by:
getChildCount in interface TreeNode
Returns:
See Also:

getIndex

public int getIndex(TreeNode node)
Method declaration

Specified by:
getIndex in interface TreeNode
Parameters:
node -
Returns:
See Also:

getParent

public TreeNode getParent()
Method declaration

Specified by:
getParent in interface TreeNode
Returns:
See Also:

isLeaf

public boolean isLeaf()
Method declaration

Specified by:
isLeaf in interface TreeNode
Returns:
See Also:

isRoot

public boolean isRoot()
Method declaration

Returns:
See Also:

getDOMRep

public Element getDOMRep()
Method declaration

Returns:
See Also:

getTagName

public String getTagName()
Method declaration

Returns:
See Also:

toString

public String toString()
Method declaration

Overrides:
toString in class Object
Returns:
See Also:

getDisplayProperty

public String getDisplayProperty()

getDOMRepAsAttribString

public String getDOMRepAsAttribString()

getDOMRepAsString

public String getDOMRepAsString()
Method declaration

Returns:
See Also:

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException
Method declaration

Specified by:
getTransferData in interface Transferable
Parameters:
flavor -
Returns:
Throws:
UnsupportedFlavorException
See Also:

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Method declaration

Specified by:
getTransferDataFlavors in interface Transferable
Returns:
See Also:

isAncestorOf

public boolean isAncestorOf(FormItem xchild)
Method declaration

Parameters:
xchild -
Returns:
See Also:

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Method declaration

Specified by:
isDataFlavorSupported in interface Transferable
Parameters:
flavor -
Returns:
See Also:

link

public boolean link(FormItem it)

linkControl

public boolean linkControl(FormItem it)

mousePressed

public void mousePressed(MouseEvent me)
Method declaration

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Parameters:
me -
See Also:

mouseClicked

public void mouseClicked(MouseEvent me)
Method declaration

Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseAdapter
Parameters:
me -
See Also:

mouseReleased

public void mouseReleased(MouseEvent me)
Method declaration

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
me -
See Also:

paintMarked

public void paintMarked(Graphics g)
Method declaration

Parameters:
g -
See Also:

addFilterColor

public void addFilterColor(String key,
                           Color color)

addFilterColor

public void addFilterColor(String key,
                           int r,
                           int g,
                           int b)

removeFilterColor

public void removeFilterColor(String key)

removeAllFilterColors

public void removeAllFilterColors()

filterColor

public Color filterColor(Color color)

contains

public boolean contains(FormItem it)
Method declaration

Parameters:
it -
Returns:
See Also:

destroy

public void destroy()

addXFObjectConnectionListener

public void addXFObjectConnectionListener(IXFObjectConnectionListener l)
Method declaration

Specified by:
addXFObjectConnectionListener in interface IXFObjectConnectionNotifier
Parameters:
item -
See Also:

removeXFObjectConnectionListener

public void removeXFObjectConnectionListener(IXFObjectConnectionListener l)
Specified by:
removeXFObjectConnectionListener in interface IXFObjectConnectionNotifier

fireConnected

protected void fireConnected(XFObjectConnectionEvent e)

fireDisConnected

protected void fireDisConnected(XFObjectConnectionEvent e)

fireSelected

protected void fireSelected(XFObjectConnectionEvent e)

fireDeSelected

protected void fireDeSelected(XFObjectConnectionEvent e)

fireDeleted

protected void fireDeleted(XFObjectConnectionEvent e)

fireChanged

protected void fireChanged(XFObjectConnectionEvent e)

connected

public void connected(XFObjectConnectionEvent e)
Specified by:
connected in interface IXFObjectConnectionListener

disconnected

public void disconnected(XFObjectConnectionEvent e)
Specified by:
disconnected in interface IXFObjectConnectionListener

selected

public void selected(XFObjectConnectionEvent e)
Specified by:
selected in interface IXFObjectConnectionListener

deSelected

public void deSelected(XFObjectConnectionEvent e)
Specified by:
deSelected in interface IXFObjectConnectionListener

changed

public void changed(XFObjectConnectionEvent e)
Specified by:
changed in interface IXFObjectConnectionListener

deleted

public void deleted(XFObjectConnectionEvent e)
Specified by:
deleted in interface IXFObjectConnectionListener

notifySelected

public void notifySelected(boolean b)

connectMethod

protected void connectMethod(Property prop,
                             String jMethod,
                             String[] jParams)
Method declaration

Parameters:
xProp -
jMethod -
jParams -
See Also:

connectMethod

protected void connectMethod(Property prop,
                             String jMethod,
                             Class[] jParams)

migrateProps

public void migrateProps(Node n)
Migrates the DOM version of node n into the current DOM version.

Parameters:
n -
See Also:

mapItem

public void mapItem(String id)

highlightLinked

public void highlightLinked()

highlightLinkedControl

public void highlightLinkedControl()

unhighlightLinked

public void unhighlightLinked()
Removes the color filter from the item linked to this one. If this item doesn't have a "link" property or the linked item is not highlighted, the method does nothing.


unhighlightLinkedControl

public void unhighlightLinkedControl()

getBounds

public Rectangle getBounds()

setBounds

public void setBounds(Rectangle r)

addContextMenuEntry

protected JMenuItem addContextMenuEntry(String s)

addContextMenuEntry

protected JMenuItem addContextMenuEntry(String s,
                                        int idx)

removeContextMenuEntry

protected void removeContextMenuEntry(JMenuItem item)

isDocked

public boolean isDocked()

setDocked

public void setDocked(boolean b)

toggleDocked

public Boolean toggleDocked()

checkReadOnlyProperty

public void checkReadOnlyProperty(String property)

checkValueListProperty

public void checkValueListProperty(String property)

isEditingControl

public boolean isEditingControl()

isDynamicControl

public boolean isDynamicControl()

classChanged

public void classChanged(String cl)

updateVisibleProperties

public void updateVisibleProperties()

checkMandatoryProperty

public void checkMandatoryProperty(String property)

getEditorManager

public EditorManager getEditorManager()

getFormManager

public FormManager getFormManager()

getDataManager

protected DataManager getDataManager()

getFormItemFactory

public FormItemFactory getFormItemFactory()

getDocument

public Document getDocument()

getClient

public SoapClient getClient()

next

public FormItem next()

next

public FormItem next(boolean ignoreChildren)

previous

public FormItem previous()

prepareForGroup

public void prepareForGroup()

addProperty

public void addProperty(Property p)

getAllowedChildClasses

public Set getAllowedChildClasses()

isChildClassAllowed

public boolean isChildClassAllowed(String cl)

isChildAllowed

public boolean isChildAllowed(FormItem item)

setAllowedChildClasses

public void setAllowedChildClasses(String str)

insertAddItemToContextMenu

protected void insertAddItemToContextMenu(JPopupMenu menu,
                                          int insertIdx)

getAccessibleContext

public AccessibleContext getAccessibleContext()
Specified by:
getAccessibleContext in interface Accessible

getLotIdx

public int getLotIdx()

setLotIdx

public void setLotIdx(int i)

sortSubTree

public void sortSubTree()

allowsChildren

public boolean allowsChildren()

getDisplayName

public String getDisplayName()

getRoot

public FormItem getRoot()

getTranslationFrom

public Point getTranslationFrom(FormItem ancestor)

getRegisterLock

public Object getRegisterLock()

isRegistered

public boolean isRegistered()

setRegistered

public void setRegistered(boolean b)

propagateViewOrientation

public void propagateViewOrientation()

setContextMenuLocation

public void setContextMenuLocation(int x,
                                   int y)

getContextMenuLocation

public Point getContextMenuLocation()

createDefaultChildren

public void createDefaultChildren()

checkInsert

public FormItem.ChangeFormClassAction checkInsert(FormItem[] item)


Copyright 2011 SAP AG Complete Copyright Notice