public abstract class SwingAppChoiceItemContext1<T> extends Object implements net.thevpc.echo.api.components.AppChoiceItemContext<T>
| Modifier and Type | Field and Description |
|---|---|
protected JComponent |
jcomponent |
| Constructor and Description |
|---|
SwingAppChoiceItemContext1(net.thevpc.echo.api.components.AppChoiceControl<T> appChoiceControl,
JComponent jcomponent,
T value,
int index,
Icon icon,
boolean isSelected,
boolean cellHasFocus,
boolean disabled) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.echo.Application |
getApplication() |
net.thevpc.echo.api.AppColor |
getBackgroundColor() |
net.thevpc.echo.api.components.AppChoiceControl<T> |
getChoice() |
net.thevpc.echo.api.AppColor |
getColor() |
net.thevpc.echo.api.AppFont |
getFont() |
Icon |
getIcon() |
int |
getIndex() |
JComponent |
getJcomponent() |
String |
getText() |
T |
getValue() |
boolean |
isDisabled() |
boolean |
isFocused() |
boolean |
isSelected() |
void |
setBackgroundColor(net.thevpc.echo.api.AppColor color) |
void |
setIcon(net.thevpc.echo.api.AppImage icon) |
void |
setIcon(net.thevpc.common.i18n.Str icon) |
void |
setOpaque(boolean opaque) |
void |
setText(String text) |
void |
setTextAlign(net.thevpc.echo.constraints.Anchor align) |
void |
setTextColor(net.thevpc.echo.api.AppColor color) |
void |
setTextFont(net.thevpc.echo.api.AppFont font) |
void |
setTextStrikeThrough(boolean strikeThrough) |
void |
setTextStrokeSize(int size) |
void |
setTextUnderline(boolean underline) |
void |
setValue(T value) |
protected JComponent jcomponent
public SwingAppChoiceItemContext1(net.thevpc.echo.api.components.AppChoiceControl<T> appChoiceControl, JComponent jcomponent, T value, int index, Icon icon, boolean isSelected, boolean cellHasFocus, boolean disabled)
public JComponent getJcomponent()
public net.thevpc.echo.api.AppFont getFont()
getFont in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public net.thevpc.echo.api.AppColor getColor()
getColor in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public net.thevpc.echo.api.AppColor getBackgroundColor()
getBackgroundColor in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public net.thevpc.echo.api.components.AppChoiceControl<T> getChoice()
getChoice in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public T getValue()
getValue in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public String getText()
public int getIndex()
getIndex in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public net.thevpc.echo.Application getApplication()
getApplication in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public boolean isSelected()
isSelected in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public boolean isFocused()
isFocused in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public Icon getIcon()
public boolean isDisabled()
isDisabled in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setText(String text)
setText in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setOpaque(boolean opaque)
setOpaque in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setTextColor(net.thevpc.echo.api.AppColor color)
setTextColor in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setTextFont(net.thevpc.echo.api.AppFont font)
setTextFont in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setTextUnderline(boolean underline)
setTextUnderline in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setTextStrikeThrough(boolean strikeThrough)
setTextStrikeThrough in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setTextStrokeSize(int size)
setTextStrokeSize in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setTextAlign(net.thevpc.echo.constraints.Anchor align)
setTextAlign in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setIcon(net.thevpc.common.i18n.Str icon)
setIcon in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setIcon(net.thevpc.echo.api.AppImage icon)
setIcon in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>public void setBackgroundColor(net.thevpc.echo.api.AppColor color)
setBackgroundColor in interface net.thevpc.echo.api.components.AppChoiceItemContext<T>Copyright © 2022 vpc open source initiative. All rights reserved.