/** * Updates the content (icon, text, orientation, ...) of this {@link MiniButtonContent}. */ protected void updateContent(){ if( model == null ){ label.setIcon( null ); label.setText( null ); label.setHorizontal( true ); label.setEnabled( true ); } else{ label.setIcon( new ForwardIcon() ); label.setText( model.getText() ); label.setHorizontal( model.getOrientation().isHorizontal() ); label.setEnabled( model.isEnabled() ); } }
/** * Updates the content (icon, text, orientation, ...) of this {@link MiniButtonContent}. */ protected void updateContent(){ if( model == null ){ label.setIcon( null ); label.setText( null ); label.setHorizontal( true ); label.setEnabled( true ); } else{ label.setIcon( new ForwardIcon() ); label.setText( model.getText() ); label.setHorizontal( model.getOrientation().isHorizontal() ); label.setEnabled( model.isEnabled() ); } }