Package org.jboss.hal.client.tools
Class MacroEditorView
- java.lang.Object
-
- com.gwtplatform.mvp.client.ViewImpl
-
- org.jboss.hal.core.mvp.HalViewImpl
-
- org.jboss.hal.client.tools.MacroEditorView
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,com.gwtplatform.mvp.client.View,Iterable<elemental2.dom.HTMLElement>,org.jboss.elemento.IsElement,MacroEditorPresenter.MyView,HalView,HasPresenter<MacroEditorPresenter>
public class MacroEditorView extends HalViewImpl implements MacroEditorPresenter.MyView
-
-
Constructor Summary
Constructors Constructor Description MacroEditorView(Resources resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()This method should be called after the view's elements are attached to the DOM.voiddetach()Counterpart toHalView.attach().voiddisableMacro(Macro macro)voidempty()voidenableMacro(Macro macro)voidselectMacro(Macro macro)voidsetMacros(Iterable<Macro> macros)voidsetPresenter(MacroEditorPresenter presenter)-
Methods inherited from class org.jboss.hal.core.mvp.HalViewImpl
element, iterator
-
Methods inherited from class com.gwtplatform.mvp.client.ViewImpl
addToSlot, asWidget, removeFromSlot, setInSlot
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Constructor Detail
-
MacroEditorView
@Inject public MacroEditorView(Resources resources)
-
-
Method Detail
-
attach
public void attach()
Description copied from interface:HalViewThis method should be called after the view's elements are attached to the DOM. Typically this method is called fromHalPresenter.onReveal().Do not use
ViewImpl.onAttach()to initialize PatternFly components. This works for widgets only, but not for elements!- Specified by:
attachin interfaceHalView- Overrides:
attachin classHalViewImpl
-
detach
public void detach()
Description copied from interface:HalViewCounterpart toHalView.attach(). Implement this method if you need to remove stuff which was setup inHalView.attach(). The default implementation does nothing.- Specified by:
detachin interfaceHalView- Overrides:
detachin classHalViewImpl
-
setPresenter
public void setPresenter(MacroEditorPresenter presenter)
- Specified by:
setPresenterin interfaceHasPresenter<MacroEditorPresenter>
-
empty
public void empty()
- Specified by:
emptyin interfaceMacroEditorPresenter.MyView
-
setMacros
public void setMacros(Iterable<Macro> macros)
- Specified by:
setMacrosin interfaceMacroEditorPresenter.MyView
-
selectMacro
public void selectMacro(Macro macro)
- Specified by:
selectMacroin interfaceMacroEditorPresenter.MyView
-
enableMacro
public void enableMacro(Macro macro)
- Specified by:
enableMacroin interfaceMacroEditorPresenter.MyView
-
disableMacro
public void disableMacro(Macro macro)
- Specified by:
disableMacroin interfaceMacroEditorPresenter.MyView
-
-