Class DevicePropertyListPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class DevicePropertyListPanel extends JFrame implements Serializable
See Also:
  • Field Details

    • tableModel

      protected fr.esrf.tangoatk.widget.properties.DevicePropertyListTableModel tableModel
    • tableCellRenderer

      protected fr.esrf.tangoatk.widget.properties.DevicePropertyListTableCellRenderer tableCellRenderer
    • tableCellEditor

      protected fr.esrf.tangoatk.widget.properties.DevicePropertyListTableCellEditor tableCellEditor
    • device

      protected fr.esrf.tangoatk.core.Device device
    • dismissText

      protected String dismissText
    • applyChangeText

      protected String applyChangeText
    • refreshText

      protected String refreshText
    • titleText

      protected String titleText
    • propertiesNameColumnText

      protected String propertiesNameColumnText
    • propertiesValueColumnText

      protected String propertiesValueColumnText
    • propertyListEditable

      protected boolean propertyListEditable
    • askConfirmation

      protected boolean askConfirmation
    • titleAskConfirmation

      protected String titleAskConfirmation
    • textAskConfirmation

      protected String textAskConfirmation
    • textView

      protected JScrollPane textView
    • theTable

      protected JTable theTable
    • okButton

      protected JButton okButton
    • applyButton

      protected JButton applyButton
    • refreshButton

      protected JButton refreshButton
    • innerPanel

      protected JPanel innerPanel
    • colName

      protected String[] colName
    • data

      protected fr.esrf.tangoatk.core.DeviceProperty[] data
    • m_device

      protected fr.esrf.tangoatk.core.Device m_device
  • Constructor Details

    • DevicePropertyListPanel

      public DevicePropertyListPanel() throws HeadlessException
      Constructor
      Throws:
      HeadlessException - In case of failure
    • DevicePropertyListPanel

      public DevicePropertyListPanel(fr.esrf.tangoatk.core.Device aDevice, String apropertiesNameColumnText, String apropertiesValueColumnText) throws HeadlessException
      Constructs the widget, associates a Device, and sets the title of the columns of the table
      Parameters:
      aDevice - Device model
      apropertiesNameColumnText - Column name
      apropertiesValueColumnText - Column name
      Throws:
      HeadlessException - In case of failure
  • Method Details

    • clearTable

      protected void clearTable()
    • initTable

      protected void initTable()
    • refresh

      protected void refresh()
    • applyChange

      public void applyChange()
      Apply resource change
    • getDevice

      public fr.esrf.tangoatk.core.Device getDevice()
      Returns:
      The Device of which you view the properties
    • setDevice

      public void setDevice(fr.esrf.tangoatk.core.Device aDevice)
      Sets the device of which you want to view the properties
      Parameters:
      aDevice - the device
    • getTable

      public JTable getTable()
      usefull method when you need to do modifications of the table like background color control, etc...
      Returns:
      the table of this widget
    • getApplyChangeText

      public String getApplyChangeText()
      Returns:
      the text of the "apply" button
    • setApplyChangeText

      public void setApplyChangeText(String applyChangeText)
      sets the text of the "apply" button
      Parameters:
      applyChangeText - the text to set
    • getDismissText

      public String getDismissText()
      Returns:
      the text of the "close" button
    • setDismissText

      public void setDismissText(String dismissText)
      sets the text of the "close" button
      Parameters:
      dismissText - the text to set
    • getTitleText

      public String getTitleText()
      Returns:
      the title of the Frame
    • setTitleText

      public void setTitleText(String titleText)
      sets the Frame title
      Parameters:
      titleText - the title
    • getPropertiesNameColumnText

      public String getPropertiesNameColumnText()
      Returns:
      the title of the column "names"
    • setPropertiesNameColumnText

      public void setPropertiesNameColumnText(String propertiesNameColumnText)
      sets the title of the column "names"
      Parameters:
      propertiesNameColumnText - the title
    • getPropertiesValueColumnText

      public String getPropertiesValueColumnText()
      Returns:
      the title of the column "values"
    • setPropertiesValueColumnText

      public void setPropertiesValueColumnText(String propertiesValueColumnText)
      sets the title of the column "values"
      Parameters:
      propertiesValueColumnText - the title
    • isPropertyListEditable

      public boolean isPropertyListEditable()
      Returns:
      a boolean to know wheather the table is editable or not
    • setPropertyListEditable

      public void setPropertyListEditable(boolean propertyListEditable)
      sets wheather the table is editable or not
      Parameters:
      propertyListEditable - table is editable or not
    • getTitleAskConfirmation

      public String getTitleAskConfirmation()
      Returns:
      The title to ask confirmation for modifications
    • setTitleAskConfirmation

      public void setTitleAskConfirmation(String titleAskConfirmation)
      sets the title to ask confirmation for modifications
      Parameters:
      titleAskConfirmation - the title
    • isAskConfirmation

      public boolean isAskConfirmation()
      Returns:
      a boolean that tells wheather you have to confirm the modifications or not on click on "apply" button
    • setAskConfirmation

      public void setAskConfirmation(boolean askConfirmation)
      sets wheather you have to confirm the modifications or not on click on "apply" button
      Parameters:
      askConfirmation - the corresponding boolean
    • getTextAskConfirmation

      public String getTextAskConfirmation()
      Returns:
      The message to ask confirmation for modifications
    • setTextAskConfirmation

      public void setTextAskConfirmation(String textAskConfirmation)
      sets the message to ask confirmation for modifications
      Parameters:
      textAskConfirmation - the message
    • main

      public static void main(String[] args)