Class MailSessionView
- java.lang.Object
-
- com.gwtplatform.mvp.client.ViewImpl
-
- org.jboss.hal.core.mvp.HalViewImpl
-
- org.jboss.hal.client.configuration.subsystem.mail.MailSessionView
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,com.gwtplatform.mvp.client.View,Iterable<elemental2.dom.HTMLElement>,org.jboss.elemento.IsElement,MailSessionPresenter.MyView,HalView,HasPresenter<MailSessionPresenter>
public class MailSessionView extends HalViewImpl implements MailSessionPresenter.MyView
Implementation note: Not based on MBUI XML due to special handling of mail servers. Each mail session can define three different servers: SMTP, IMAP and POP3.
-
-
Constructor Summary
Constructors Constructor Description MailSessionView(MetadataRegistry metadataRegistry, Dispatcher dispatcher, StatementContext statementContext, TableButtonFactory tableButtonFactory, CredentialReference cr, 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.voidselect(NamedNode mailServer)voidsetPresenter(MailSessionPresenter presenter)voidupdate(org.jboss.hal.client.configuration.subsystem.mail.MailSession mailSession)-
Methods inherited from class org.jboss.hal.core.mvp.HalViewImpl
detach, 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
-
MailSessionView
@Inject public MailSessionView(MetadataRegistry metadataRegistry, Dispatcher dispatcher, StatementContext statementContext, TableButtonFactory tableButtonFactory, CredentialReference cr, 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
-
setPresenter
public void setPresenter(MailSessionPresenter presenter)
- Specified by:
setPresenterin interfaceHasPresenter<MailSessionPresenter>
-
update
public void update(org.jboss.hal.client.configuration.subsystem.mail.MailSession mailSession)
- Specified by:
updatein interfaceMailSessionPresenter.MyView
-
select
public void select(NamedNode mailServer)
- Specified by:
selectin interfaceMailSessionPresenter.MyView
-
-