@Authors(value="Nikolche Mihajlovski") @Since(value="4.2.0") public abstract class AbstractCommand<W extends AbstractCommand<?>> extends AbstractWidget<W>
AMP, ANY, ASTERISK, BYTE_0, COL, CR, CR_, CR_LF, CR_LF_CR_LF, DELETE, EMPTY_ARRAY, EMPTY_STRING_ARRAY, EQ, F, GET, GET_OR_POST, HEAD, HTTP_VERBS, LAST_6, LF, LF_, LF_LF, MALFORMED_CHAR, NOT_FOUND, OPTIONS, PATCH, POST, PUT, SEMI_COL, SEPARATOR_LINE, SPACE, SPACE_, T, TRACE, UTF8_2_BYTES_LEAD, UTF8_3_BYTES_LEAD, UTF8_4_BYTES_LEAD, UTF8_CONTINUATION| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clicked() |
Object[] |
cmdArgs() |
String |
command() |
W |
command(String cmd,
Object... cmdArgs) |
protected void |
handleEventIfMatching() |
protected Runnable |
handler() |
protected AbstractCommand |
handler(Runnable handler) |
protected Runnable |
handlerOnError() |
protected AbstractCommand |
handlerOnError(Runnable handlerOnError) |
protected Runnable |
handlerOnSuccess() |
protected AbstractCommand |
handlerOnSuccess(Runnable handlerOnSuccess) |
protected boolean |
hasHandler() |
public boolean clicked()
protected void handleEventIfMatching()
protected boolean hasHandler()
public String command()
public Object[] cmdArgs()
protected Runnable handler()
protected AbstractCommand handler(Runnable handler)
protected Runnable handlerOnSuccess()
protected AbstractCommand handlerOnSuccess(Runnable handlerOnSuccess)
protected Runnable handlerOnError()
protected AbstractCommand handlerOnError(Runnable handlerOnError)
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.