Styling: updated "since" javadoc tags

This commit is contained in:
Karl Tauber
2021-09-06 15:39:19 +02:00
parent 674efae184
commit fe15758e59
49 changed files with 128 additions and 128 deletions

View File

@@ -790,7 +790,7 @@ public abstract class FlatLaf
* @param valueType the expected value type, or {@code null} * @param valueType the expected value type, or {@code null}
* @return the binary value * @return the binary value
* @throws IllegalArgumentException on syntax errors * @throws IllegalArgumentException on syntax errors
* @since TODO * @since 2
*/ */
public static Object parseDefaultsValue( String key, String value, Class<?> valueType ) public static Object parseDefaultsValue( String key, String value, Class<?> valueType )
throws IllegalArgumentException throws IllegalArgumentException

View File

@@ -41,7 +41,7 @@ public class FlatCapsLockIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
Object oldValue; Object oldValue;

View File

@@ -133,14 +133,14 @@ public class FlatCheckBoxIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -50,14 +50,14 @@ public class FlatCheckBoxMenuItemIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -52,14 +52,14 @@ public class FlatClearIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -75,14 +75,14 @@ public class FlatHelpButtonIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -52,14 +52,14 @@ public class FlatMenuArrowIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -50,14 +50,14 @@ public class FlatSearchIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -67,14 +67,14 @@ public class FlatTabbedPaneCloseIcon
} }
/** /**
* @since TODO * @since 2
*/ */
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -96,7 +96,7 @@ public class FlatArrowButton
} }
/** /**
* @since TODO * @since 2
*/ */
public void updateStyle( String type, Color foreground, Color disabledForeground, public void updateStyle( String type, Color foreground, Color disabledForeground,
Color hoverForeground, Color hoverBackground, Color pressedForeground, Color pressedBackground ) Color hoverForeground, Color hoverBackground, Color pressedForeground, Color pressedBackground )

View File

@@ -81,7 +81,7 @@ public class FlatBorder
@Styleable(dot=true) protected Color customBorderColor = UIManager.getColor( "Component.custom.borderColor" ); @Styleable(dot=true) protected Color customBorderColor = UIManager.getColor( "Component.custom.borderColor" );
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
@@ -89,7 +89,7 @@ public class FlatBorder
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {

View File

@@ -272,7 +272,7 @@ public class FlatButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( AbstractButton b, Object style ) { protected void applyStyle( AbstractButton b, Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style,
@@ -280,7 +280,7 @@ public class FlatButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( AbstractButton b, String key, Object value ) { protected Object applyStyleProperty( AbstractButton b, String key, Object value ) {
if( key.startsWith( "help." ) ) { if( key.startsWith( "help." ) ) {
@@ -302,7 +302,7 @@ public class FlatButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -101,14 +101,14 @@ public class FlatCheckBoxMenuItemUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
try { try {
@@ -121,7 +121,7 @@ public class FlatCheckBoxMenuItemUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -49,7 +49,7 @@ public class FlatCheckBoxUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected FlatCheckBoxUI( boolean shared ) { protected FlatCheckBoxUI( boolean shared ) {
super( shared ); super( shared );

View File

@@ -448,7 +448,7 @@ public class FlatComboBoxUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
Insets oldPadding = padding; Insets oldPadding = padding;
@@ -469,7 +469,7 @@ public class FlatComboBoxUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
// BasicComboBoxUI // BasicComboBoxUI
@@ -485,7 +485,7 @@ public class FlatComboBoxUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -91,7 +91,7 @@ public class FlatDropShadowBorder
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
@@ -104,7 +104,7 @@ public class FlatDropShadowBorder
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {

View File

@@ -173,7 +173,7 @@ public class FlatEditorPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldDisabledBackground = disabledBackground; oldDisabledBackground = disabledBackground;
@@ -185,14 +185,14 @@ public class FlatEditorPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, getComponent(), key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, getComponent(), key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -153,14 +153,14 @@ public class FlatInternalFrameUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
if( borderShared == null ) if( borderShared == null )
@@ -169,7 +169,7 @@ public class FlatInternalFrameUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -73,7 +73,7 @@ public class FlatLabelUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected FlatLabelUI( boolean shared ) { protected FlatLabelUI( boolean shared ) {
this.shared = shared; this.shared = shared;
@@ -138,7 +138,7 @@ public class FlatLabelUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( JLabel c, Object style ) { protected void applyStyle( JLabel c, Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style,
@@ -146,14 +146,14 @@ public class FlatLabelUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( JLabel c, String key, Object value ) { protected Object applyStyleProperty( JLabel c, String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, c, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, c, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -160,7 +160,7 @@ public class FlatListUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
Color oldSelectionBackground = selectionBackground; Color oldSelectionBackground = selectionBackground;
@@ -190,14 +190,14 @@ public class FlatListUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, list, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, list, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -41,7 +41,7 @@ public class FlatMenuBarBorder
@Styleable protected Color borderColor = UIManager.getColor( "MenuBar.borderColor" ); @Styleable protected Color borderColor = UIManager.getColor( "MenuBar.borderColor" );
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {

View File

@@ -128,14 +128,14 @@ public class FlatMenuBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
if( borderShared == null ) if( borderShared == null )
@@ -144,7 +144,7 @@ public class FlatMenuBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -103,7 +103,7 @@ public class FlatMenuItemRenderer
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
// style icon // style icon
@@ -151,7 +151,7 @@ public class FlatMenuItemRenderer
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
Map<String, Class<?>> infos = FlatStylingSupport.getAnnotatedStyleableInfos( this ); Map<String, Class<?>> infos = FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -104,14 +104,14 @@ public class FlatMenuItemUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
try { try {
@@ -139,7 +139,7 @@ public class FlatMenuItemUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -149,14 +149,14 @@ public class FlatMenuUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
try { try {
@@ -169,7 +169,7 @@ public class FlatMenuUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -162,7 +162,7 @@ public class FlatPasswordFieldUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
@@ -178,7 +178,7 @@ public class FlatPasswordFieldUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -48,7 +48,7 @@ public class FlatPopupMenuBorder
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Object applyStyleProperty( String key, Object value ) { public Object applyStyleProperty( String key, Object value ) {
@@ -61,7 +61,7 @@ public class FlatPopupMenuBorder
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {

View File

@@ -45,7 +45,7 @@ public class FlatPopupMenuSeparatorUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected FlatPopupMenuSeparatorUI( boolean shared ) { protected FlatPopupMenuSeparatorUI( boolean shared ) {
super( shared ); super( shared );

View File

@@ -81,14 +81,14 @@ public class FlatPopupMenuUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
if( borderShared == null ) if( borderShared == null )
@@ -97,7 +97,7 @@ public class FlatPopupMenuUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -130,21 +130,21 @@ public class FlatProgressBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, progressBar, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, progressBar, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -101,14 +101,14 @@ public class FlatRadioButtonMenuItemUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
try { try {
@@ -121,7 +121,7 @@ public class FlatRadioButtonMenuItemUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -82,7 +82,7 @@ public class FlatRadioButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected FlatRadioButtonUI( boolean shared ) { protected FlatRadioButtonUI( boolean shared ) {
this.shared = shared; this.shared = shared;
@@ -133,7 +133,7 @@ public class FlatRadioButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void propertyChange( AbstractButton b, PropertyChangeEvent e ) { protected void propertyChange( AbstractButton b, PropertyChangeEvent e ) {
switch( e.getPropertyName() ) { switch( e.getPropertyName() ) {
@@ -156,7 +156,7 @@ public class FlatRadioButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( AbstractButton b, Object style ) { protected void applyStyle( AbstractButton b, Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style,
@@ -164,7 +164,7 @@ public class FlatRadioButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( AbstractButton b, String key, Object value ) { protected Object applyStyleProperty( AbstractButton b, String key, Object value ) {
// style icon // style icon
@@ -185,7 +185,7 @@ public class FlatRadioButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {
@@ -286,7 +286,7 @@ public class FlatRadioButtonUI
//---- class FlatRadioButtonListener -------------------------------------- //---- class FlatRadioButtonListener --------------------------------------
/** /**
* @since TODO * @since 2
*/ */
protected class FlatRadioButtonListener protected class FlatRadioButtonListener
extends BasicButtonListener extends BasicButtonListener

View File

@@ -221,7 +221,7 @@ public class FlatScrollBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
@@ -233,7 +233,7 @@ public class FlatScrollBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
Object oldValue; Object oldValue;
@@ -250,7 +250,7 @@ public class FlatScrollBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -302,14 +302,14 @@ public class FlatScrollPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
if( key.equals( "focusWidth" ) ) { if( key.equals( "focusWidth" ) ) {
@@ -323,7 +323,7 @@ public class FlatScrollPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -68,7 +68,7 @@ public class FlatSeparatorUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected FlatSeparatorUI( boolean shared ) { protected FlatSeparatorUI( boolean shared ) {
this.shared = shared; this.shared = shared;
@@ -137,7 +137,7 @@ public class FlatSeparatorUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( JSeparator s, Object style ) { protected void applyStyle( JSeparator s, Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style,
@@ -145,14 +145,14 @@ public class FlatSeparatorUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( JSeparator s, String key, Object value ) { protected Object applyStyleProperty( JSeparator s, String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, s, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, s, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -191,21 +191,21 @@ public class FlatSliderUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, slider, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, slider, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -191,7 +191,7 @@ public class FlatSpinnerUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
@@ -200,7 +200,7 @@ public class FlatSpinnerUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
if( borderShared == null ) if( borderShared == null )
@@ -209,7 +209,7 @@ public class FlatSpinnerUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -139,7 +139,7 @@ public class FlatSplitPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
@@ -149,7 +149,7 @@ public class FlatSplitPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
try { try {
@@ -162,7 +162,7 @@ public class FlatSplitPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {
@@ -190,14 +190,14 @@ public class FlatSplitPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
public Map<String, Class<?>> getStyleableInfos() { public Map<String, Class<?>> getStyleableInfos() {
return FlatStylingSupport.getAnnotatedStyleableInfos( this ); return FlatStylingSupport.getAnnotatedStyleableInfos( this );

View File

@@ -44,7 +44,7 @@ import com.formdev.flatlaf.util.SystemInfo;
* Support for styling components in CSS syntax. * Support for styling components in CSS syntax.
* *
* @author Karl Tauber * @author Karl Tauber
* @since TODO * @since 2
*/ */
public class FlatStylingSupport public class FlatStylingSupport
{ {

View File

@@ -573,7 +573,7 @@ public class FlatTabbedPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
@@ -586,7 +586,7 @@ public class FlatTabbedPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
// close icon // close icon
@@ -630,7 +630,7 @@ public class FlatTabbedPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -141,14 +141,14 @@ public class FlatTableHeaderUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
if( key.equals( "sortIconPosition" ) && value instanceof String ) if( key.equals( "sortIconPosition" ) && value instanceof String )
@@ -158,7 +158,7 @@ public class FlatTableHeaderUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -236,7 +236,7 @@ public class FlatTableUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
Color oldSelectionBackground = selectionBackground; Color oldSelectionBackground = selectionBackground;
@@ -266,14 +266,14 @@ public class FlatTableUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, table, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, table, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -147,7 +147,7 @@ public class FlatTextAreaUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldDisabledBackground = disabledBackground; oldDisabledBackground = disabledBackground;
@@ -159,14 +159,14 @@ public class FlatTextAreaUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, getComponent(), key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, getComponent(), key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -203,7 +203,7 @@ public class FlatTextFieldUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldDisabledBackground = disabledBackground; oldDisabledBackground = disabledBackground;
@@ -215,7 +215,7 @@ public class FlatTextFieldUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
if( borderShared == null ) if( borderShared == null )
@@ -224,7 +224,7 @@ public class FlatTextFieldUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -155,7 +155,7 @@ public class FlatTextPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldDisabledBackground = disabledBackground; oldDisabledBackground = disabledBackground;
@@ -167,14 +167,14 @@ public class FlatTextPaneUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, getComponent(), key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, getComponent(), key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -147,7 +147,7 @@ public class FlatToggleButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
protected Object applyStyleProperty( AbstractButton b, String key, Object value ) { protected Object applyStyleProperty( AbstractButton b, String key, Object value ) {
@@ -158,7 +158,7 @@ public class FlatToggleButtonUI
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -66,7 +66,7 @@ public class FlatToolBarSeparatorUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected FlatToolBarSeparatorUI( boolean shared ) { protected FlatToolBarSeparatorUI( boolean shared ) {
this.shared = shared; this.shared = shared;
@@ -133,21 +133,21 @@ public class FlatToolBarSeparatorUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObject( this, key, value ); return FlatStylingSupport.applyToAnnotatedObject( this, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -137,7 +137,7 @@ public class FlatToolBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
boolean oldFocusableButtons = focusableButtons; boolean oldFocusableButtons = focusableButtons;
@@ -149,14 +149,14 @@ public class FlatToolBarUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, toolBar, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, toolBar, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {

View File

@@ -310,21 +310,21 @@ public class FlatTreeUI
} }
/** /**
* @since TODO * @since 2
*/ */
protected void applyStyle( Object style ) { protected void applyStyle( Object style ) {
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty ); oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
} }
/** /**
* @since TODO * @since 2
*/ */
protected Object applyStyleProperty( String key, Object value ) { protected Object applyStyleProperty( String key, Object value ) {
return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, tree, key, value ); return FlatStylingSupport.applyToAnnotatedObjectOrComponent( this, tree, key, value );
} }
/** /**
* @since TODO * @since 2
*/ */
@Override @Override
public Map<String, Class<?>> getStyleableInfos( JComponent c ) { public Map<String, Class<?>> getStyleableInfos( JComponent c ) {