public class MaximizeToggleButtonPresenter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MaximizeToggleButtonPresenter.View |
Constructor and Description |
---|
MaximizeToggleButtonPresenter(MaximizeToggleButtonPresenter.View view) |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
org.uberfire.mvp.Command |
getMaximizeCommand()
Returns the currently registered maximize command.
|
org.uberfire.mvp.Command |
getUnmaximizeCommand()
Returns the currently registered unmaximize command.
|
MaximizeToggleButtonPresenter.View |
getView()
Returns the view for this presenter.
|
void |
handleClick()
Handles a click event from the view.
|
boolean |
isMaximized()
Reports whether this button is currently in the maximized state.
|
void |
setMaximizeCommand(org.uberfire.mvp.Command maximizeCommand)
Sets the command to invoke upon each transition from unmaximized to maximized.
|
void |
setMaximized(boolean maximized)
Changes the maximized state of this button without calling the commands.
|
void |
setUnmaximizeCommand(org.uberfire.mvp.Command unmaximizeCommand)
Sets the command to invoke upon each transition from maximized to unmaximized.
|
void |
setVisible(boolean b) |
public MaximizeToggleButtonPresenter(MaximizeToggleButtonPresenter.View view)
public org.uberfire.mvp.Command getMaximizeCommand()
public void setMaximizeCommand(org.uberfire.mvp.Command maximizeCommand)
public org.uberfire.mvp.Command getUnmaximizeCommand()
public void setUnmaximizeCommand(org.uberfire.mvp.Command unmaximizeCommand)
public boolean isMaximized()
public void setMaximized(boolean maximized)
maximized
- the new maximized state to set.public void handleClick()
public MaximizeToggleButtonPresenter.View getView()
public void setVisible(boolean b)
public void enable()
public void disable()
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.