Class MaterialComponentField

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void changeColorOnFocus​(java.awt.Graphics g)  
      protected void firePropertyChange​(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)  
      protected void installMyDefaults​(javax.swing.JComponent component)  
      protected void logicForChangeColorOnFocus​(javax.swing.JComponent component, java.awt.Color background, java.awt.Color foreground)  
      protected void logicForPropertyChange​(java.awt.Color newColor, boolean isForeground)  
      protected void paintLine​(java.awt.Graphics graphics)  
      • Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI

        create, createUI, getBaseline, getBaselineResizeBehavior, getPropertyPrefix
      • Methods inherited from class javax.swing.plaf.basic.BasicTextUI

        create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, modelToView2D, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
      • Methods inherited from class javax.swing.plaf.TextUI

        getToolTipText2D
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PROPERTY_LINE_COLOR

        protected static final java.lang.String PROPERTY_LINE_COLOR
        See Also:
        Constant Field Values
      • PROPERTY_SELECTION_COLOR

        protected static final java.lang.String PROPERTY_SELECTION_COLOR
        See Also:
        Constant Field Values
      • PROPERTY_SELECTION_TEXT_COLOR

        protected static final java.lang.String PROPERTY_SELECTION_TEXT_COLOR
        See Also:
        Constant Field Values
      • PROPERTY_ENABLED_COMPONENT

        protected static final java.lang.String PROPERTY_ENABLED_COMPONENT
        See Also:
        Constant Field Values
      • drawLine

        protected boolean drawLine
      • focused

        protected boolean focused
      • textComponent

        protected javax.swing.text.JTextComponent textComponent
      • background

        protected java.awt.Color background
      • foreground

        protected java.awt.Color foreground
      • activeBackground

        protected java.awt.Color activeBackground
      • activeForeground

        protected java.awt.Color activeForeground
      • inactiveBackground

        protected java.awt.Color inactiveBackground
      • inactiveForeground

        protected java.awt.Color inactiveForeground
      • disabledBackground

        protected java.awt.Color disabledBackground
      • disabledForeground

        protected java.awt.Color disabledForeground
      • colorLineInactive

        protected java.awt.Color colorLineInactive
      • colorLineActive

        protected java.awt.Color colorLineActive
      • colorLine

        protected java.awt.Color colorLine
      • focusListenerColorLine

        protected java.awt.event.FocusListener focusListenerColorLine
      • propertyChangeListener

        protected java.beans.PropertyChangeListener propertyChangeListener
      • propertyChangeSupport

        protected java.beans.PropertyChangeSupport propertyChangeSupport
    • Constructor Detail

      • MaterialComponentField

        public MaterialComponentField()
      • MaterialComponentField

        public MaterialComponentField​(boolean drawLine)
    • Method Detail

      • logicForChangeColorOnFocus

        protected void logicForChangeColorOnFocus​(javax.swing.JComponent component,
                                                  java.awt.Color background,
                                                  java.awt.Color foreground)
      • installMyDefaults

        protected void installMyDefaults​(javax.swing.JComponent component)
      • logicForPropertyChange

        protected void logicForPropertyChange​(java.awt.Color newColor,
                                              boolean isForeground)
      • changeColorOnFocus

        protected void changeColorOnFocus​(java.awt.Graphics g)
      • firePropertyChange

        protected void firePropertyChange​(java.lang.String propertyName,
                                          java.lang.Object oldValue,
                                          java.lang.Object newValue)
      • paintLine

        protected void paintLine​(java.awt.Graphics graphics)