Package jmri.jmrit.beantable.beanedit
Class BeanEditItem
- java.lang.Object
-
- jmri.jmrit.beantable.beanedit.BeanEditItem
-
public class BeanEditItem extends java.lang.Object
Hold the information for each bean panel in a structured manner.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JComponent
component
(package private) java.lang.String
description
(package private) java.lang.String
help
-
Constructor Summary
Constructors Constructor Description BeanEditItem(javax.swing.JComponent component, java.lang.String description, java.lang.String help)
Create the item structure to be added.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponent
getComponent()
java.lang.String
getDescription()
java.lang.String
getHelp()
-
-
-
Field Detail
-
component
javax.swing.JComponent component
-
description
java.lang.String description
-
help
java.lang.String help
-
-
Constructor Detail
-
BeanEditItem
public BeanEditItem(javax.swing.JComponent component, java.lang.String description, java.lang.String help)
Create the item structure to be added. If the component and description are null, then the help text will be displayed across the width of the panel.- Parameters:
component
- Optional Contains the item to be editeddescription
- Optional Contains the text for the label that will be to the left of the componenthelp
- Optional Contains the help or hint text, that will be displayed to the right of the component
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
-
getHelp
public java.lang.String getHelp()
-
getComponent
public javax.swing.JComponent getComponent()
-
-