public interface P2DContainerInterface extends FwkInfoBusMemberInterface, FwkDOMHandlerInterface
INFOBUS_SOURCEAUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME| Modifier and Type | Method and Description |
|---|---|
void |
addContainerListener(P2DContainerListenerInterface listener)
Add a container listener.
|
void |
addFocusListener(java.awt.event.FocusListener l)
Adds a focus listener.
|
void |
addListener(java.lang.Class clazz,
java.util.EventListener listener)
Adds a order listener.
|
void |
addMouseListener(java.awt.event.MouseListener l)
Adds an MouseListener.
|
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l)
Adds an MouseMotionListener.
|
void |
addOrderListener(P2DOrderListenerInterface l)
Adds a order listener.
|
P2DContainerInterface |
addP2D(P2DContainerInterface comp)
Adds the specified component to the end of this container.
|
P2DContainerInterface |
addP2D(P2DContainerInterface comp,
int index)
Adds the specified component to this container at the given
position.
|
P2DContainerInterface |
addP2D(java.lang.String name)
Adds the specified component to the end of this container.
|
P2DContainerInterface |
addP2D(java.lang.String name,
int index)
Adds the specified component to this container at the given
position.
|
void |
addRepaintListener(P2DRepaintListenerInterface listener)
Add a repaint listener.
|
void |
fireOrderEvent(boolean flag)
Fire an order event.
|
boolean |
getActive(P2DContainerInterface container)
Get the active flag.
|
P2DContainerInterface |
getActiveComponent(P2DContainerInterface container)
Get the active component.
|
void |
getAllArmedComponents(P2DContainerInterface container,
double x,
double y,
FwkArrayInterface arr)
return all armed component.
|
void |
getAllArmedComponents(P2DContainerInterface container,
java.awt.geom.Point2D p,
FwkArrayInterface arr)
return all armed component.
|
P2DContainerInterface |
getArmedComponent(double x,
double y)
return the armed component.
|
FwkCommandInterface[] |
getComponentCommands()
Get the commands of all components.
|
FwkArrayInterface |
getContainerListenerArray()
Get the array containing the container listeners.
|
FwkArrayInterface |
getFocusListenerArray()
Get the array containing the focus listenres.
|
FwkArrayInterface |
getListenerArray(java.lang.Class clazz)
Get the array containing the order listeners.
|
FwkArrayInterface |
getMouseListenerArray()
Get the array containing the mouse motion listenres.
|
FwkArrayInterface |
getMouseMotionListenerArray()
Get the array containing the mouse listeners.
|
FwkArrayInterface |
getOrderListenerArray()
Get the array containing the order listeners.
|
P2DContainerInterface[] |
getP2D(java.lang.Class clazz)
Retrieves the specified component class from this container.
|
P2DContainerInterface[] |
getP2D(java.lang.Class clazz,
java.lang.String name)
Retrieves the specified component class from this container.
|
P2DContainerInterface |
getP2D(int index)
Gets the component, specified by
index,
from this container. |
FwkArrayInterface |
getP2DComponentArray()
Gets all the components in this container.
|
FwkArrayInterface |
getP2DComponents()
Gets all the components in this container.
|
P2DContainerInterface |
getParentContainer()
Get the parent container of this component.
|
FwkArrayInterface |
getRepaintListenerArray()
Get the array containing the repaint listeners.
|
boolean |
getSelectable()
Get a boolean indicates whether the container is selectable.
|
java.lang.String |
getShortName()
Get the short name of the container.
|
java.lang.Object |
getTreeLock()
Gets the locking object for component-tree and layout
Gets this component's locking object (the object that owns the thread
sychronization monitor) for component-tree and layout
operations.
|
boolean |
openPopupMenu(java.awt.event.MouseEvent ev)
Open the popup menu.
|
void |
processFocusEvent(java.awt.event.FocusEvent e)
Process the mouse event.
|
void |
processMouseEvent(java.awt.event.MouseEvent e)
Process the mouse event.
|
void |
removeAllP2D()
Removes all the components from this container.
|
void |
removeContainerListener(P2DContainerListenerInterface listener)
Remove a container listener.
|
void |
removeFocusListener(java.awt.event.FocusListener l)
Removes an focus listener.
|
void |
removeListener(java.lang.Class clazz,
java.util.EventListener listener)
Removes an order listener.
|
void |
removeMouseListener(java.awt.event.MouseListener l)
Removes an MouseListener.
|
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Removes an MouseMotionListener.
|
void |
removeOrderListener(P2DOrderListenerInterface l)
Removes an order listener.
|
P2DContainerInterface |
removeP2D(int index)
Removes the component, specified by
index,
from this container. |
P2DContainerInterface |
removeP2D(P2DContainerInterface comp)
Removes the specified component from this container.
|
void |
removeRepaintListener(P2DRepaintListenerInterface listener)
Remove a repaint listener.
|
void |
repaint()
Repaint the container.
|
java.awt.event.MouseEvent |
restoreLastMouseEvent()
Restore last mouse event.
|
java.awt.geom.Point2D |
restoreLocalMousePoint()
Restore local mouse point.
|
void |
revalidate(boolean recursive)
Revalidate the container.
|
void |
saveLastMouseEvent(java.awt.event.MouseEvent ev)
Save the last mouse event.
|
void |
saveLocalMousePoint(java.awt.geom.Point2D p)
Save the local mouse point.
|
void |
setActive(P2DContainerInterface container,
boolean flag)
Activate the component.
|
void |
setActiveComponent(P2DContainerInterface container,
P2DContainerInterface component)
Set the active component.
|
void |
setParentContainer(P2DContainerInterface container)
Set the parent container of the component.
|
void |
setSelectable(boolean flag)
Set the container selectable.
|
void |
toBack()
Move this component to back inside the parent container.
|
void |
toBack(int index)
Move the component with the given index to the back (first array position).
|
void |
toBack(P2DContainerInterface container)
Move the given component to the back (first array position).
|
void |
toFront()
Move this component to front inside the parent container.
|
void |
toFront(int index)
Move the component with the given index to the front (last array position).
|
void |
toFront(P2DContainerInterface container)
Move the given component to the front (last array position).
|
void |
unregister()
Unregister the container.
|
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNamefireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringgetVersion, releaseaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXMLFwkArrayInterface getP2DComponents()
void unregister()
FwkArrayInterface getP2DComponentArray()
P2DContainerInterface addP2D(P2DContainerInterface comp)
comp - the component to be added.P2DContainerInterface addP2D(java.lang.String name)
name - The component's name. The component is found on InfoBus.P2DContainerInterface addP2D(P2DContainerInterface comp, int index)
comp - the component to be added.index - the position at which to insert the component,
or -1 to insert the component at the end.comp#removeP2DContainerInterface addP2D(java.lang.String name, int index)
name - the component's to be added.index - the position at which to insert the component,
or -1 to insert the component at the end.comp#remove,
#add(String)P2DContainerInterface removeP2D(int index)
index,
from this container.index - the index of the component to be removed.the - element that was remove or null if not available.#addP2DContainerInterface removeP2D(P2DContainerInterface comp)
comp - the component to be removedthe - element that was remove or null if not available.#addvoid removeAllP2D()
#add,
#removeP2DContainerInterface getP2D(int index)
index,
from this container.index - the index of the component to be retrieved.the - element that was retrieved or null if not available.#addP2DContainerInterface[] getP2D(java.lang.Class clazz)
clazz - the child class.an - array containing component implementing the specified class.P2DContainerInterface[] getP2D(java.lang.Class clazz, java.lang.String name)
clazz - the child class.name - the name of the component.an - array containing component implementing the specified class and
with the specified name.void toFront()
void toFront(int index)
index - The index of the component to be moved.void toFront(P2DContainerInterface container)
container - The component to be moved.void toBack()
void toBack(int index)
index - The index of the component to be moved.void toBack(P2DContainerInterface container)
container - The component to be moved.void setParentContainer(P2DContainerInterface container)
container - The parent container.getParentP2DContainerInterface getParentContainer()
setParentvoid processMouseEvent(java.awt.event.MouseEvent e)
Componentvoid processFocusEvent(java.awt.event.FocusEvent e)
Componentvoid getAllArmedComponents(P2DContainerInterface container, java.awt.geom.Point2D p, FwkArrayInterface arr)
p - The armed coordinates.arr - The array to collect all armed components.void getAllArmedComponents(P2DContainerInterface container, double x, double y, FwkArrayInterface arr)
x - The x part of the armed coordinate.y - The y part of the armed coordinate.arr - The array to collect all armed components.P2DContainerInterface getArmedComponent(double x, double y)
void setActiveComponent(P2DContainerInterface container, P2DContainerInterface component)
component - The component.P2DContainerInterface getActiveComponent(P2DContainerInterface container)
FwkArrayInterface getMouseListenerArray()
The - FwkArrayInterface.void addMouseListener(java.awt.event.MouseListener l)
l - The mouse motion listener.void removeMouseListener(java.awt.event.MouseListener l)
l - The mouse motion listener.FwkArrayInterface getMouseMotionListenerArray()
The - FwkArrayInterface.void addMouseMotionListener(java.awt.event.MouseMotionListener l)
l - The mouse motion listener.void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
l - The mouse motion listener.FwkArrayInterface getFocusListenerArray()
The - FwkArrayInterface.void addFocusListener(java.awt.event.FocusListener l)
l - The focus listener.void removeFocusListener(java.awt.event.FocusListener l)
l - The focus listener.void addRepaintListener(P2DRepaintListenerInterface listener)
listener - the repaint listener.void removeRepaintListener(P2DRepaintListenerInterface listener)
listener - the repaint listener.FwkArrayInterface getRepaintListenerArray()
The - FwkArrayInterface.void addContainerListener(P2DContainerListenerInterface listener)
listener - the container listener.void removeContainerListener(P2DContainerListenerInterface listener)
listener - the container listener.FwkArrayInterface getContainerListenerArray()
The - FwkArrayInterface.void repaint()
java.lang.Object getTreeLock()
void setActive(P2DContainerInterface container, boolean flag)
flag - true if the component should be activated.boolean getActive(P2DContainerInterface container)
FwkArrayInterface getOrderListenerArray()
The - BrickArrayInterface.void addOrderListener(P2DOrderListenerInterface l)
l - The order listener.void removeOrderListener(P2DOrderListenerInterface l)
l - The order listener.void fireOrderEvent(boolean flag)
flag - if true then an popToFront is fired else an pushToButton event.FwkArrayInterface getListenerArray(java.lang.Class clazz)
clazz - The listener class.The - BrickArrayInterface.void addListener(java.lang.Class clazz,
java.util.EventListener listener)
clazz - The listener class.listener - An instance of the listener class.l - The order listener.void removeListener(java.lang.Class clazz,
java.util.EventListener listener)
clazz - The listener class.listener - An instance of the listener class.l - The order listener.void revalidate(boolean recursive)
void setSelectable(boolean flag)
flag - if true the container is selectable.boolean getSelectable()
boolean openPopupMenu(java.awt.event.MouseEvent ev)
ev - The mouse event.true - if operation was successful.java.lang.String getShortName()
void saveLastMouseEvent(java.awt.event.MouseEvent ev)
ev - The mouse event to be saved.java.awt.event.MouseEvent restoreLastMouseEvent()
void saveLocalMousePoint(java.awt.geom.Point2D p)
p - The local mouse point to be saved.java.awt.geom.Point2D restoreLocalMousePoint()
FwkCommandInterface[] getComponentCommands()