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() |
Command |
getMaximizeCommand()
Returns the currently registered maximize command.
|
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(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(Command unmaximizeCommand)
Sets the command to invoke upon each transition from maximized to unmaximized.
|
void |
setVisible(boolean b) |
public MaximizeToggleButtonPresenter(MaximizeToggleButtonPresenter.View view)
public Command getMaximizeCommand()
public void setMaximizeCommand(Command maximizeCommand)
public Command getUnmaximizeCommand()
public void setUnmaximizeCommand(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–2020 JBoss by Red Hat. All rights reserved.