Package bibliothek.gui.dock.action

Examples of bibliothek.gui.dock.action.DockActionText


        setRemoveEmptyGroups( false );
       
        setEnabled( true, true );
        setEnabled( false, false );
       
        text = new DockActionText( "replace", this ){
      protected void changed( String oldValue, String newValue ){
        setText( true, newValue );
            setText( false, newValue );     
      }
    };
       
        tooltip = new DockActionText( "replace.tooltip", this ){
      protected void changed( String oldValue, String newValue ){
        setTooltip( true, newValue );
        setTooltip( false, newValue );
      }
    };
View Full Code Here


     * @param controller The controller from which this action should read
     * properties, might be <code>null</code> and can be changed by the
     * method {@link #setController(DockController) setController}
     */
    public CloseAction( DockController controller ){
      text = new DockActionText( "close", this ){
      protected void changed( String oldValue, String newValue ){
        setText( newValue )
      }
    };
      tooltip = new DockActionText( "close.tooltip", this ){
      protected void changed( String oldValue, String newValue ){
        setTooltip( newValue )
      }
    };
        icon = new DockActionIcon( "close", this ){
View Full Code Here

      protected void changed( Icon oldValue, Icon newValue ){
        setIcon( newValue )
      }
    };
       
    text = new DockActionText( "rename", this ){
      protected void changed( String oldValue, String newValue ){
        setText( newValue )
      }
    };
    tooltip = new DockActionText( "rename.tooltip", this ){
      protected void changed( String oldValue, String newValue ){
        setTooltip( newValue )
      }
    };
       
        menu.setLayout( new GridBagLayout() );
        JPanel panel = new JPanel( new GridLayout( 1, 2 ));
        panel.add( okButton );
        panel.add( cancelButton );
        menu.add( titleField, new GridBagConstraints( 0, 0, 1, 1, 100.0, 1.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets( 1, 1, 1, 1 ), 0, 0 ));
        menu.add( panel, new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0,
                GridBagConstraints.CENTER, GridBagConstraints.VERTICAL,
                new Insets( 1, 1, 1, 1 ), 0, 0 ));
       
        titleField.setColumns( 10 );
       
        textOk = new DockActionText( "rename.ok", this ){
      protected void changed( String oldValue, String newValue ){
        okButton.setText( newValue )
      }
    };
    textCancel = new DockActionText( "rename.cancel", this ){
      protected void changed( String oldValue, String newValue ){
        cancelButton.setText( newValue )
      }
    };
       
View Full Code Here

      protected void changed( Icon oldValue, Icon newValue ){
        setIcon( newValue );
      }
    };

        text = new DockActionText( textKey, this ){
      protected void changed( String oldValue, String newValue ){
        setText( newValue );
      }
    };
   
    tooltip = new DockActionText( tooltipKey, this ){
      protected void changed( String oldValue, String newValue ){
        setTooltip( newValue )
      }
    };
   
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.action.DockActionText

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.