|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jmri.jmrit.display.palette.ItemPanel
jmri.jmrit.display.palette.FamilyItemPanel
jmri.jmrit.display.palette.TableItemPanel
public class TableItemPanel
JPanels for the various item types that come from tool Tables - e.g. Sensors, Turnouts, etc.
| Nested Class Summary | |
|---|---|
protected class |
TableItemPanel.IconDragJLabel
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) JButton |
_addTableButton
|
(package private) JDialog |
_addTableDialog
|
protected PickListModel |
_model
|
(package private) JScrollPane |
_scrollPane
|
(package private) JTextField |
_sysNametext
|
protected JTable |
_table
|
(package private) JTextField |
_userNametext
|
(package private) static org.slf4j.Logger |
log
|
(package private) int |
ROW_HEIGHT
|
| Fields inherited from class jmri.jmrit.display.palette.FamilyItemPanel |
|---|
_bottom1Panel, _bottom2Panel, _currentIconMap, _dragIconPanel, _iconFamilyPanel, _iconPanel, _showIconsButton, _updateButton |
| Fields inherited from class jmri.jmrit.display.palette.ItemPanel |
|---|
_editor, _family, _initialized, _itemType, _linkName, _paletteFrame, _update, BACKGROUND, ICON, INDICATOR_TRACK, LIGHT, MULTISENSOR, RPSREPORTER, SENSOR, SIGNAL, TURNOUT |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TableItemPanel(JmriJFrame parentFrame,
String type,
String family,
PickListModel model,
Editor editor)
Constructor for all table types. |
|
| Method Summary | |
|---|---|
protected void |
addToTable()
|
protected JLabel |
getDragger(DataFlavor flavor,
HashMap<String,NamedIcon> map)
|
protected NamedBean |
getNamedBean()
|
NamedBean |
getTableSelection()
Used by Panel Editor to make the final installation of the icon(s) into the user's Panel. |
void |
init()
Init for creation insert table |
void |
init(ActionListener doneAction,
HashMap<String,NamedIcon> iconMap)
Init for update of existing indicator turnout _bottom3Panel has "Update Panel" button put into _bottom1Panel |
protected JPanel |
initTablePanel(PickListModel model,
Editor editor)
top Panel |
protected void |
makeAddToTableWindow()
|
void |
setSelection(NamedBean bean)
|
void |
valueChanged(ListSelectionEvent e)
ListSelectionListener action |
| Methods inherited from class jmri.jmrit.display.palette.FamilyItemPanel |
|---|
addCreatePanels, addFamilyPanels, addIconsToPanel, getIconMap, hideIcons, init, initIconFamiliesPanel, makeBottom1Panel, makeBottom2Panel, makeBottom3Panel, makeBottomPanel, makeDndIconPanel, makeFamilyButtons, openEditDialog, removeIconFamiliesPanel, setFamily, showIcons, updateFamiliesPanel |
| Methods inherited from class jmri.jmrit.display.palette.ItemPanel |
|---|
dispose, getFamilyName, initLinkPanel, isUpdate, makeNewIconMap, removeIconMap, reset |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
int ROW_HEIGHT
protected JTable _table
protected PickListModel _model
JScrollPane _scrollPane
JDialog _addTableDialog
JTextField _sysNametext
JTextField _userNametext
JButton _addTableButton
static org.slf4j.Logger log
| Constructor Detail |
|---|
public TableItemPanel(JmriJFrame parentFrame,
String type,
String family,
PickListModel model,
Editor editor)
| Method Detail |
|---|
public void init()
init in class FamilyItemPanel
public void init(ActionListener doneAction,
HashMap<String,NamedIcon> iconMap)
init in class FamilyItemPanel
protected JPanel initTablePanel(PickListModel model,
Editor editor)
protected void makeAddToTableWindow()
protected void addToTable()
public NamedBean getTableSelection()
Note! the selection is cleared. When two successive calls are made, the 2nd will always return null, regardless of the 1st return.
public void setSelection(NamedBean bean)
public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerprotected NamedBean getNamedBean()
protected JLabel getDragger(DataFlavor flavor,
HashMap<String,NamedIcon> map)
getDragger in class FamilyItemPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||