Class LabeledHpr<T extends javax.swing.JComponent>

  • Direct Known Subclasses:
    AbstractButtonHpr, JLabelHpr

    public abstract class LabeledHpr<T extends javax.swing.JComponent>
    extends JComponentHpr<T>
    This class is the superclass for labels and buttons which handles attributes common to both classes.
    • Constructor Detail

      • LabeledHpr

        public LabeledHpr()
    • Method Detail

      • getChildCount

        public int getChildCount​(T anObj)
        Override to suppress children.
        Overrides:
        getChildCount in class JComponentHpr<T extends javax.swing.JComponent>
      • getIcon

        public abstract javax.swing.Icon getIcon​(T aLabeled)
        Returns the button or label icon.
      • setIcon

        public abstract void setIcon​(T aLabeled,
                                     javax.swing.Icon anIcon)
        Sets the button or label icon.
      • getHorizontalAlignment

        public abstract int getHorizontalAlignment​(T aLabeled)
        Standard button or label property.
      • setHorizontalAlignment

        public abstract void setHorizontalAlignment​(T aLabeled,
                                                    int aValue)
        Standard button or label property.
      • getVerticalAlignment

        public abstract int getVerticalAlignment​(T aLabeled)
        Standard button or label property.
      • setVerticalAlignment

        public abstract void setVerticalAlignment​(T aLabeled,
                                                  int aValue)
        Standard button or label property.
      • getHorizontalTextPosition

        public abstract int getHorizontalTextPosition​(T aLabeled)
        Standard button or label property.
      • setHorizontalTextPosition

        public abstract void setHorizontalTextPosition​(T aLabeled,
                                                       int aValue)
        Standard button or label property.
      • getVerticalTextPosition

        public abstract int getVerticalTextPosition​(T aLabeled)
        Standard button or label property.
      • setVerticalTextPosition

        public abstract void setVerticalTextPosition​(T aLabeled,
                                                     int aValue)
        Standard button or label property.
      • getIconTextGap

        public abstract int getIconTextGap​(T aLabeled)
        Standard button or label property.
      • setIconTextGap

        public abstract void setIconTextGap​(T aLabeled,
                                            int aValue)
        Standard button or label property.
      • getPropertyNamesImpl

        protected java.util.List<java.lang.String> getPropertyNamesImpl​(T anObj)
        Returns the property names for given object.
        Overrides:
        getPropertyNamesImpl in class JComponentHpr<T extends javax.swing.JComponent>