Class ObjectAndDescription
java.lang.Object
org.openjump.sextante.core.ObjectAndDescription
- All Implemented Interfaces:
Comparable<Object>
Refactor of Sextante class es.unex.sextante.core.ObjectAndDescription from
lib Sextante.jar. This class creates an object defined by the component
description and the component . Ex: ObjectAndDescription oa = new
ObjectAndDescription(name, component); where name=String and component could
be JPanel, JTextArea, JTextPane, JLabel, JTable, HTMLPanel , PlotPanel
- Author:
- Giuseppe Aruta [2017-12-12] TODO should we constrain the Object attribute to be a JComponent or do we really need to have it opened to any Object ?
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare two ObjectAndDescription objects using their descriptionsbooleanCompare two ObjectAndDescription objects using their descriptions and their componentsgets the descriptiongets the component (JPanel, JTextArea, JTextPane, JLabel, JTable, HTMLPanel , PlotPanel)voidsetDescription(String sDescription) sets the descriptionvoidsets the component (JPanel, JTextArea, JTextPane, JLabel, JTable, HTMLPanel , PlotPanel)toString()gets the description
-
Constructor Details
-
ObjectAndDescription
-
-
Method Details
-
getObject
gets the component (JPanel, JTextArea, JTextPane, JLabel, JTable, HTMLPanel , PlotPanel)- Returns:
- the Object
-
setObject
sets the component (JPanel, JTextArea, JTextPane, JLabel, JTable, HTMLPanel , PlotPanel) -
getDescription
-
setDescription
sets the description -
toString
-
compareTo
Compare two ObjectAndDescription objects using their descriptions- Specified by:
compareToin interfaceComparable<Object>
-
equals
-