Interface IJComponent

All Superinterfaces:
IComponent, IContainer
All Known Subinterfaces:
IJTable, IJTextComponent, IJTree
All Known Implementing Classes:
JTableImpl

public interface IJComponent extends IContainer
Author:
Taha BEN SALAH (taha.bensalah@gmail.com) alias vpc %creationtime 2009/08/15 21:25:07
  • Method Details

    • updateUI

      void updateUI()
    • setBorder

      void setBorder(Border border)
    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener listener)
      Specified by:
      addPropertyChangeListener in interface IComponent
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener listener)
      Specified by:
      removePropertyChangeListener in interface IComponent
    • addPropertyChangeListener

      void addPropertyChangeListener(String property, PropertyChangeListener listener)
      Specified by:
      addPropertyChangeListener in interface IComponent
    • removePropertyChangeListener

      void removePropertyChangeListener(String property, PropertyChangeListener listener)
      Specified by:
      removePropertyChangeListener in interface IComponent
    • getComponentPopupMenu

      JPopupMenu getComponentPopupMenu()
    • getClientProperty

      Object getClientProperty(Object key)
      Returns the value of the property with the specified key. Only properties added with putClientProperty will return a non-null value.
      Parameters:
      key - the being queried
      Returns:
      the value of this property or null
      See Also:
    • putClientProperty

      void putClientProperty(Object key, Object value)
      Adds an arbitrary key/value "client property" to this component.

      The get/putClientProperty methods 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 is null this method will remove the property. Changes to client properties are reported with PropertyChange events. The name of the property (for the sake of PropertyChange events) is key.toString().

      The clientProperty dictionary 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 key
      value - the new client property value; if null this method will remove the property
      See Also:
    • setTransferHandler

      void setTransferHandler(TransferHandler newHandler)