Package xtwm.plugins

Class QuickNotes

  • All Implemented Interfaces:
    java.lang.Comparable<TWidget>

    public class QuickNotes
    extends PluginWidget
    QuickNotes is a simple calendar view.
    • Constructor Detail

      • QuickNotes

        public QuickNotes​(TWidget parent)
        Public constructor.
        Parameters:
        parent - parent widget
      • QuickNotes

        public QuickNotes()
        No-argument constructor that is intended only for use by XTWMApplication.loadPlugin().
    • Method Detail

      • onResize

        public void onResize​(TResizeEvent resize)
        Method that subclasses can override to handle window/screen resize events.
        Overrides:
        onResize in class TWidget
        Parameters:
        resize - resize event
      • close

        public void close()
        Save the notes.
        Overrides:
        close in class TWidget
      • initialize

        public void initialize​(XTWMApplication app)
        Initialize the plugin. Since plugins are required to have a no-argument constructor, this method is called to provide a hook for the plugin to perform initialization. Subclasses that override initialize should call super.initialize() to set the XTWMApplication reference.
        Overrides:
        initialize in class PluginWidget
        Parameters:
        app - the application that will be using this plugin
      • getMenuMnemonic

        public java.lang.String getMenuMnemonic()
        Get the translated menu label for this plugin.
        Specified by:
        getMenuMnemonic in class PluginWidget
        Returns:
        a mnemonic string that will be populated in the menu
      • getPluginName

        public java.lang.String getPluginName()
        Get the translated short name for this plugin.
        Specified by:
        getPluginName in class PluginWidget
        Returns:
        a short name, e.g. "Calendar"
      • getPluginDescription

        public java.lang.String getPluginDescription()
        Get the translated full description for this plugin.
        Specified by:
        getPluginDescription in class PluginWidget
        Returns:
        a short name, e.g. "A simple calendar."
      • isApplication

        public boolean isApplication()
        See if this is an "Application" plugin.
        Specified by:
        isApplication in class PluginWidget
        Returns:
        true if this plugin should be listed the Application | Programs menu
      • getApplicationCommand

        public java.lang.String getApplicationCommand()
        Get the command line to execute if this is an "Application" plugin.
        Specified by:
        getApplicationCommand in class PluginWidget
        Returns:
        a command line
      • isWidget

        public boolean isWidget()
        See if this is a "Widget" plugin.
        Specified by:
        isWidget in class PluginWidget
        Returns:
        true if this plugin should be available in the Application | Widgets meny and the Panel | "Switch to" dialog
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Get the translated window title for this plugin.
        Specified by:
        getWindowTitle in class PluginWidget
        Returns:
        the title for the window when this widget is opened in the Application | Widgets menu, or null if this widget should have no title for its window.
      • getPluginSettingsEditor

        public TWidget getPluginSettingsEditor​(TWidget parent)
        Get an interface for editing the plugin settings.
        Overrides:
        getPluginSettingsEditor in class PluginWidget
        Parameters:
        parent - parent widget
        Returns:
        a widget that has settings
      • getPreferredWidth

        public int getPreferredWidth()
        Get the desired width when rendering this plugin.
        Specified by:
        getPreferredWidth in class PluginWidget
        Returns:
        the width
      • getPreferredHeight

        public int getPreferredHeight()
        Get the desired height when rendering this plugin.
        Specified by:
        getPreferredHeight in class PluginWidget
        Returns:
        the height
      • isResizable

        public boolean isResizable()
        Check if widget should be in a resizable window.
        Overrides:
        isResizable in class PluginWidget
        Returns:
        true if the widget should be resizable when in a window