Class PIAFieldBean

All Implemented Interfaces:
PControllerBean, PFieldBean, PLightComponent, PropertyChangeListener, Serializable, Remote, Unreferenced, EventListener
Direct Known Subclasses:
PIACanonFieldBeanImpl, PIAGroupTreeBeanImpl, PIAListBeanImpl, PIAObjectFieldBeanImpl, PIAPaymentFieldBeanImpl, PIAPaymentOnFileFieldBeanImpl

public class PIAFieldBean extends PFieldControllerBean implements PropertyChangeListener, PLightComponent
Version:
%version: 2 % %date_modified: Thu Apr 19 17:43:25 2001 %
Author:
larrylf
See Also:
  • Constructor Details

  • Method Details

    • getDataDescriptor

      public String getDataDescriptor()
      Gets the data field description used by the component.
      Specified by:
      getDataDescriptor in interface PLightComponent
      Returns:
      A String description of the fields used by this component or null if there is none.
      Throws:
      RemoteException - thrown for errors
    • getLightData

      public Object getLightData()
      Gets the lightweight data object.
      Specified by:
      getLightData in interface PLightComponent
      Returns:
      The lightweight component's display value or null.
    • setLightData

      public void setLightData(Object value)
      Sets the lightweight data object. This is usually called by framework support as part of the lightweight component implementation.
      Specified by:
      setLightData in interface PLightComponent
      Parameters:
      value - the lightweight component's display data
    • update

      public void update(int reason, Object data) throws RemoteException
      Updates the field according to the displayFieldDescription property, if present.
      Specified by:
      update in class PControllerImpl
      Parameters:
      reason - the reason for the update
      data - the updated object
      Throws:
      RemoteException - thrown for all errors
    • getSelectionDataFor

      public Object getSelectionDataFor(String dataItem, int index) throws RemoteException
      Given the name of a display data item and an optional index, returns the information needed for a selection event. The information returned is usually model data.
      Specified by:
      getSelectionDataFor in interface PControllerBean
      Parameters:
      dataItem - the name of a data item. Must match the name of an item changed by sending a PViewDataChangeEvent.
      index - an optional index into an array data item
      Returns:
      The model handle for the selected field or null.
      Throws:
      RemoteException - thrown for errors
    • getRemoteListenerHandle

      public Object getRemoteListenerHandle(String type) throws RemoteException
      If the component's controller can listen for events from other controllers, getRemoteListenerHandle posts a listener and returns a handle to identify it.
      Specified by:
      getRemoteListenerHandle in interface PControllerBean
      Overrides:
      getRemoteListenerHandle in class PControllerImpl
      Parameters:
      type - the type of listener to get
      Returns:
      An object handle to identify this controller's listener, or null.
      Throws:
      RemoteException - thrown for all problems
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener