I add add a button in @OnStart function.
@OnStart
public void onStartComponent(final FXComponentLayout layout) {
JACPToolBar topbar = layout.getRegisteredToolBar(ToolbarPosition.NORTH);
topbar.add(cardButton);
}
then I remove the button in @OnTearDown
@OnTearDown
public void onTearDownComponent(final FXComponentLayout layout) {
JACPToolBar topbar = layout.getRegisteredToolBar(ToolbarPosition.NORTH);
topbar.getItems().remove(cardButton);
}
I can't remove the button from JACPToolBar with getItems().remove(), because
the button in fact is in the HBox or VBox inside ToolBar.
I suggest the JACPToolbar should add the methods remove() and removeOnEnd()
like add() and addOnEnd()。
Original issue reported on code.google.com by markench...@gmail.com on 8 May 2012 at 3:55
Original issue reported on code.google.com by
markench...@gmail.com
on 8 May 2012 at 3:55