Class FunctionLabelPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FunctionLabelPane extends JPanel
Display and edit the function labels in a RosterEntry.
This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getLabels

      public List<String> getLabels()
    • setLabel

      public void setLabel(int n, String label)
    • getLabel

      public String getLabel(int n)
    • setLockable

      public void setLockable(int n, boolean lockable)
    • getLockable

      public boolean getLockable(int n)
    • guiChanged

      public boolean guiChanged(RosterEntry r)
      Check if panel contents differ with a RosterEntry.
      Parameters:
      r - the roster entry to check
      Returns:
      true if panel contents differ; false otherwise
    • clearFnBtn

      public void clearFnBtn()
      Clear all function button inputs on the panel
    • resetFnBtnNMRA

      public void resetFnBtnNMRA()
      Reset all function button inputs on the panel to the NMRA standard
    • resetFnBtnNEM

      public void resetFnBtnNEM()
      Reset all function button inputs on the panel to the NEM 608 definition
    • resetFnBtnDecDef

      public void resetFnBtnDecDef(RosterEntry decre)
      Reset all function button inputs on the panel to the one defined in the decoder definition, if any
      Parameters:
      decre - the roster entry in which to look for a decoder definition
    • updateFromEntry

      public void updateFromEntry(RosterEntry re)
      Update contents from a RosterEntry object
      Parameters:
      re - the new contents
    • update

      public void update(RosterEntry r)
      Update a RosterEntry object from panel contents.
      Parameters:
      r - the roster entry to update
    • dispose

      public void dispose()
    • includeInPrint

      public boolean includeInPrint()
    • includeInPrint

      public void includeInPrint(boolean inc)
    • printPane

      public void printPane(HardcopyWriter w)