Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.uberfire.client.common;
  
Created with IntelliJ IDEA. Date: 10/3/13 Time: 10:16 PM To change this template use File | Settings | File Templates.
 
 public class ContextDropdownButton extends DropdownButton {
 
     private Button trigger;

    
Creates a DropdownButton without a caption.
 
     public ContextDropdownButton() {
         super();
     }

    
Creates a DropdownButton with the given caption.

Parameters:
caption the button's caption
 
     public ContextDropdownButtonString caption ) {
         supercaption );
     }
 
     public void displayCaretboolean value ) {
         .setCaretvalue );
     }

    
 
     @Override
     protected IconAnchor createTrigger() {
          = new Button();
         .setCarettrue );
         return ;
     }

    
Sets the button's size.

Parameters:
size the button's size
 
     public void setSizeButtonSize size ) {
         .setSizesize );
     }

    
Sets the button's type.

Parameters:
type the button's type
 
     public void setTypeButtonType type ) {
         .setTypetype );
     }

    
 
     @Override
     public void setBaseIconBaseIconType type ) {
         .setBaseIcontype );
     }
 
     @Override
     public HandlerRegistration addClickHandlerClickHandler handler ) {
         return .addClickHandlerhandler );
     }

    
 
     @Override
     public void setIconSizeIconSize size ) {
         .setIconSizesize );
     }

    
 
     @Override
     public void setCustomIconStyleString customIconStyle ) {
         .setCustomIconStylecustomIconStyle );
     }

    
    @Override
    public void setIconPositionIconPosition position ) {
        .setIconPositionposition );
    }
New to GrepCode? Check out our FAQ X