- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 34 of file CommandUtil.java.
◆ getAdapter()
static ControlAdapter org.turro.command.CommandUtil.getAdapter |
( |
Object |
entity | ) |
|
|
static |
Definition at line 56 of file CommandUtil.java.
57 return new ControlAdapter(
getLink(entity));
static HtmlBasedComponent getLink(Object entity)
◆ getAdapterOrSpace()
static ControlAdapter org.turro.command.CommandUtil.getAdapterOrSpace |
( |
Object |
entity | ) |
|
|
static |
Definition at line 51 of file CommandUtil.java.
52 IElephantEntity iee = Entities.getController(entity);
static HtmlBasedComponent getLinkOrSpace(Object entity)
◆ getEntityControl() [1/2]
static HtmlBasedComponent org.turro.command.CommandUtil.getEntityControl |
( |
Object |
entity | ) |
|
|
static |
Definition at line 36 of file CommandUtil.java.
static HtmlBasedComponent getEntityControl(Object entity)
◆ getEntityControl() [2/2]
static HtmlBasedComponent org.turro.command.CommandUtil.getEntityControl |
( |
Object |
entity, |
|
|
boolean |
showDescription, |
|
|
boolean |
linkEntity |
|
) |
| |
|
static |
Definition at line 40 of file CommandUtil.java.
41 EntityControl e =
new EntityControl(entity, showDescription, linkEntity);
◆ getLabel()
static HtmlBasedComponent org.turro.command.CommandUtil.getLabel |
( |
Object |
entity | ) |
|
|
static |
Definition at line 78 of file CommandUtil.java.
79 IElephantEntity iee = Entities.getController(entity);
81 Hlayout hbox =
new Hlayout();
82 String img = (String) iee.getImage(),
83 name = (String) iee.getName();
85 hbox.appendChild(
new Image(img));
88 hbox.appendChild(
new Label(name));
◆ getLabelAdapter()
static ControlAdapter org.turro.command.CommandUtil.getLabelAdapter |
( |
Object |
entity | ) |
|
|
static |
Definition at line 74 of file CommandUtil.java.
75 return new ControlAdapter(
getLabel(entity));
static HtmlBasedComponent getLabel(Object entity)
◆ getLink()
static HtmlBasedComponent org.turro.command.CommandUtil.getLink |
( |
Object |
entity | ) |
|
|
static |
Definition at line 65 of file CommandUtil.java.
66 IElephantEntity iee = Entities.getController(entity);
67 HtmlBasedComponent hbc = (HtmlBasedComponent) iee.getLabelCtrl();
68 if(hbc instanceof AfterCompose) {
69 ((AfterCompose) hbc).afterCompose();
◆ getLinkOrSpace()
static HtmlBasedComponent org.turro.command.CommandUtil.getLinkOrSpace |
( |
Object |
entity | ) |
|
|
static |
Definition at line 60 of file CommandUtil.java.
61 HtmlBasedComponent comp =
getLink(entity);
62 return comp ==
null ?
new Space() : comp;
◆ getNameAdapter()
static ControlAdapter org.turro.command.CommandUtil.getNameAdapter |
( |
Object |
entity | ) |
|
|
static |
Definition at line 46 of file CommandUtil.java.
47 IElephantEntity iee = Entities.getController(entity);
48 return new ControlAdapter(
new Label(iee.getName()));
The documentation for this class was generated from the following file: