Interface IJComponent
- All Superinterfaces:
IComponent, IContainer
- All Known Subinterfaces:
IJTable, IJTextComponent, IJTree
- All Known Implementing Classes:
JTableImpl
- Author:
- Taha BEN SALAH (taha.bensalah@gmail.com) alias vpc %creationtime 2009/08/15 21:25:07
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String property, PropertyChangeListener listener) getClientProperty(Object key) Returns the value of the property with the specified key.voidputClientProperty(Object key, Object value) Adds an arbitrary key/value "client property" to this component.voidvoidremovePropertyChangeListener(String property, PropertyChangeListener listener) voidvoidsetTransferHandler(TransferHandler newHandler) voidupdateUI()Methods inherited from interface IComponent
addFocusListener, addKeyListener, addMouseListener, getLocationOnScreen, isEnabled, removeFocusListener, removeKeyListener, removeMouseListener, repaint, setEnabledMethods inherited from interface IContainer
add, add, addContainerListener, getComponentAt, getLayout, removeContainerListener, setLayout
-
Method Details
-
updateUI
void updateUI() -
setBorder
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceIComponent
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceIComponent
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceIComponent
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceIComponent
-
getComponentPopupMenu
JPopupMenu getComponentPopupMenu() -
getClientProperty
-
putClientProperty
Adds an arbitrary key/value "client property" to this component.The
get/putClientPropertymethods provide access to a small per-instance hashtable. Callers can use get/putClientProperty to annotate components that were created by another module. For example, a layout manager might store per child constraints this way. For example:componentA.putClientProperty("to the left of", componentB);If value isnullthis method will remove the property. Changes to client properties are reported withPropertyChangeevents. The name of the property (for the sake of PropertyChange events) iskey.toString().The
clientPropertydictionary is not intended to support large scale extensions to JComponent nor should be it considered an alternative to subclassing when designing a new component.- Parameters:
key- the new client property keyvalue- the new client property value; ifnullthis method will remove the property- See Also:
-
setTransferHandler
-