Class CPreferenceMenuPiece


public class CPreferenceMenuPiece extends BaseMenuPiece
A menu piece that shows an entry for opening the preferences-dialog. The model to show on the dialog can either be set explicitly using setModel(PreferenceModel), or else will be read from CControl.getPreferenceModel().
Note: clients can use setup(CControl) to ensure that the CControl has a model.
Author:
Benjamin Sigg
  • Constructor Details

    • CPreferenceMenuPiece

      public CPreferenceMenuPiece(CControl control)
      Creates a new menu piece.
      Parameters:
      control - the control for which this piece works, not null
  • Method Details