|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
com.sapportals.wcm.app.xfbuilder.client.form.item.FormItem
public class FormItem
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 |
|---|
protected boolean hasView
protected Category logCat
protected FormItem that
public int rowSpan
public int colSpan
public int lastHitRow
public int xoffset
public int yoffset
public int insertxoffset
public int insertyoffset
public static final int minFontSize
public static final int maxFontSize
public static final String STRING
public static final String COLOR
public static final String FONT
public static final String BOOLEAN
public static final String CHAR
public static final String BYTE
public static final String SHORT
public static final String INT
public static final String LONG
public static final String DOUBLE
public static final String VOID
protected boolean marked
protected String id
protected Rectangle internalBounds
protected JPopupMenu contextMenu
protected com.sapportals.wcm.app.xfbuilder.client.form.item.FormItem.ContextMenuActionListener contextMenuListener
protected JPopupMenu rootContextMenu
protected FormItemView theView
protected Element domrep
protected boolean isLeaf
protected boolean isRoot
protected Object userObject
protected Vector children
protected boolean childrenAllowed
protected Set visProperties
protected Set propertiesNeedUpdate
public static DataFlavor formItemFlavor
| Constructor Detail |
|---|
public FormItem(EditorManager m,
FormItemFactory fac)
public FormItem(EditorManager m,
FormItemFactory fac,
Node n)
n - | Method Detail |
|---|
public static void initResourceBundle(Locale loc)
public Point getLocationFromDOM()
public Dimension getDimensionFromDOM()
protected void readXMLSpec(Class c)
c - public FormItem copyForm()
public FormItem copy()
public FormItem copy(boolean registerCopy,
boolean convertForm)
public FormItem paste(FormItem it)
public void setDOMRep(Node node)
node -
public void setDOMRep(Node node,
boolean migrateNode)
node - protected void syncViewWithDOM()
public void setPropertyRef(String s)
s - public void setSchemaRef(String s)
public Property getProperty(String key)
key - el -
public Collection getProperties()
public Collection getProperties(boolean sorted)
public Collection getVisibleProperties()
public boolean isPropertyVisible(String key)
public Collection getVisibleProperties(boolean sorted)
public boolean hasProperty(String key)
protected void init()
public JPopupMenu getContextMenu()
public void setLeaf(boolean b)
b - public void setLocationX(int x)
sx - public void setLocationY(int y)
sy - public void setColor(String s)
s - public void setColor(Object o)
public void setColor(Color c)
c - public void mySetFont(String s)
s - public void mySetFont(Object o)
public void mySetFont(Font f)
public void setFontSize(String s)
public void setDecoration(String s)
s - public XFUndoableEdit autoResizeParent()
public void setSizeX(String wString)
swidth - public void setSizeY(String hString)
sheight - public FormItemView getView()
public JComponent getJCView()
public void setView(FormItemView v)
v - public String getHRName()
public void setMarked(boolean b)
b - public boolean isMarked()
public String getCaption()
public void add(FormItem child,
boolean register)
child - public void add(FormItem child)
public void beginPropTransaction()
protected void bindViewMethods()
public void insert(MutableTreeNode child,
int index)
insert in interface MutableTreeNodechild - index -
public void insert(MutableTreeNode child,
int index,
boolean register)
public void addWithoutView(FormItem child)
public boolean queryRemove()
public void remove(int index)
remove in interface MutableTreeNodeindex - public void destroyAllChildren()
public void removeAllChildren()
public void remove(MutableTreeNode node)
remove in interface MutableTreeNodenode - public void removeFromParent()
removeFromParent in interface MutableTreeNodepublic void setParent(MutableTreeNode newParent)
setParent in interface MutableTreeNodenewParent -
public void setProperty(String key,
Object value,
boolean propagate)
public void setUserObject(Object object)
setUserObject in interface MutableTreeNodeobject - public Object getUserObject()
protected void initContextMenu()
public boolean allowsPaste()
protected void initRootContextMenu()
public Enumeration children()
children in interface TreeNodepublic ListIterator childIterator(int idx)
public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic void setAllowsChildren(boolean b)
b - public void setAlign(String s)
s - public TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodechildIndex -
public int getChildCount()
getChildCount in interface TreeNodepublic int getIndex(TreeNode node)
getIndex in interface TreeNodenode -
public TreeNode getParent()
getParent in interface TreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodepublic boolean isRoot()
public Element getDOMRep()
public String getTagName()
public String toString()
toString in class Objectpublic String getDisplayProperty()
public String getDOMRepAsAttribString()
public String getDOMRepAsString()
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException
getTransferData in interface Transferableflavor -
UnsupportedFlavorExceptionpublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isAncestorOf(FormItem xchild)
xchild -
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor -
public boolean link(FormItem it)
public boolean linkControl(FormItem it)
public void mousePressed(MouseEvent me)
mousePressed in interface MouseListenermousePressed in class MouseAdapterme - public void mouseClicked(MouseEvent me)
mouseClicked in interface MouseListenermouseClicked in class MouseAdapterme - public void mouseReleased(MouseEvent me)
mouseReleased in interface MouseListenermouseReleased in class MouseAdapterme - public void paintMarked(Graphics g)
g -
public void addFilterColor(String key,
Color color)
public void addFilterColor(String key,
int r,
int g,
int b)
public void removeFilterColor(String key)
public void removeAllFilterColors()
public Color filterColor(Color color)
public boolean contains(FormItem it)
it -
public void destroy()
public void addXFObjectConnectionListener(IXFObjectConnectionListener l)
addXFObjectConnectionListener in interface IXFObjectConnectionNotifieritem - public void removeXFObjectConnectionListener(IXFObjectConnectionListener l)
removeXFObjectConnectionListener in interface IXFObjectConnectionNotifierprotected void fireConnected(XFObjectConnectionEvent e)
protected void fireDisConnected(XFObjectConnectionEvent e)
protected void fireSelected(XFObjectConnectionEvent e)
protected void fireDeSelected(XFObjectConnectionEvent e)
protected void fireDeleted(XFObjectConnectionEvent e)
protected void fireChanged(XFObjectConnectionEvent e)
public void connected(XFObjectConnectionEvent e)
connected in interface IXFObjectConnectionListenerpublic void disconnected(XFObjectConnectionEvent e)
disconnected in interface IXFObjectConnectionListenerpublic void selected(XFObjectConnectionEvent e)
selected in interface IXFObjectConnectionListenerpublic void deSelected(XFObjectConnectionEvent e)
deSelected in interface IXFObjectConnectionListenerpublic void changed(XFObjectConnectionEvent e)
changed in interface IXFObjectConnectionListenerpublic void deleted(XFObjectConnectionEvent e)
deleted in interface IXFObjectConnectionListenerpublic void notifySelected(boolean b)
protected void connectMethod(Property prop,
String jMethod,
String[] jParams)
xProp - jMethod - jParams -
protected void connectMethod(Property prop,
String jMethod,
Class[] jParams)
public void migrateProps(Node n)
n - public void mapItem(String id)
public void highlightLinked()
public void highlightLinkedControl()
public void unhighlightLinked()
public void unhighlightLinkedControl()
public Rectangle getBounds()
public void setBounds(Rectangle r)
protected JMenuItem addContextMenuEntry(String s)
protected JMenuItem addContextMenuEntry(String s,
int idx)
protected void removeContextMenuEntry(JMenuItem item)
public boolean isDocked()
public void setDocked(boolean b)
public Boolean toggleDocked()
public void checkReadOnlyProperty(String property)
public void checkValueListProperty(String property)
public boolean isEditingControl()
public boolean isDynamicControl()
public void classChanged(String cl)
public void updateVisibleProperties()
public void checkMandatoryProperty(String property)
public EditorManager getEditorManager()
public FormManager getFormManager()
protected DataManager getDataManager()
public FormItemFactory getFormItemFactory()
public Document getDocument()
public SoapClient getClient()
public FormItem next()
public FormItem next(boolean ignoreChildren)
public FormItem previous()
public void prepareForGroup()
public void addProperty(Property p)
public Set getAllowedChildClasses()
public boolean isChildClassAllowed(String cl)
public boolean isChildAllowed(FormItem item)
public void setAllowedChildClasses(String str)
protected void insertAddItemToContextMenu(JPopupMenu menu,
int insertIdx)
public AccessibleContext getAccessibleContext()
getAccessibleContext in interface Accessiblepublic int getLotIdx()
public void setLotIdx(int i)
public void sortSubTree()
public boolean allowsChildren()
public String getDisplayName()
public FormItem getRoot()
public Point getTranslationFrom(FormItem ancestor)
public Object getRegisterLock()
public boolean isRegistered()
public void setRegistered(boolean b)
public void propagateViewOrientation()
public void setContextMenuLocation(int x,
int y)
public Point getContextMenuLocation()
public void createDefaultChildren()
public FormItem.ChangeFormClassAction checkInsert(FormItem[] item)
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||