Example usage for com.vaadin.ui Label setDescription

List of usage examples for com.vaadin.ui Label setDescription

Introduction

In this page you can find the example usage for com.vaadin.ui Label setDescription.

Prototype

public void setDescription(String description) 

Source Link

Document

Sets the component's description.

Usage

From source file:com.jiangyifen.ec2.ui.csr.toolbar.CsrPhone2PhoneSettingWindow.java

/**
 * (??...) ???/*from   w w  w  .j a va2  s.  c  o m*/
 * @param mainLayout
 */
private void createlDayOfWeek(VerticalLayout mainLayout) {
    dayOfWeekLayout = new HorizontalLayout();
    dayOfWeekLayout.setSpacing(true);
    dayOfWeekLayout.setVisible(false);
    mainLayout.addComponent(dayOfWeekLayout);

    Label caption = new Label("");
    caption.setWidth("-1px");
    caption.setDescription("<B>?</B>");
    dayOfWeekLayout.addComponent(caption);

    BeanItemContainer<DayOfWeek> container = new BeanItemContainer<DayOfWeek>(DayOfWeek.class);
    container.addBean(DayOfWeek.sun);
    container.addBean(DayOfWeek.mon);
    container.addBean(DayOfWeek.tue);
    container.addBean(DayOfWeek.wen);
    container.addBean(DayOfWeek.thu);
    container.addBean(DayOfWeek.fri);
    container.addBean(DayOfWeek.sat);

    daysOfWeekOption = new OptionGroup();
    daysOfWeekOption.setContainerDataSource(container);
    daysOfWeekOption.setItemCaptionPropertyId("name");
    daysOfWeekOption.setMultiSelect(true);
    daysOfWeekOption.setNullSelectionAllowed(false);
    daysOfWeekOption.setImmediate(true);
    daysOfWeekOption.setReadOnly(true);
    daysOfWeekOption.setDescription("<B>?</B>");
    daysOfWeekOption.addStyleName("threecol300");
    daysOfWeekOption.addStyleName("myopacity");
    dayOfWeekLayout.addComponent(daysOfWeekOption);
}

From source file:com.jiangyifen.ec2.ui.csr.toolbar.CsrPhone2PhoneSettingWindow.java

/**
 * ? (18:00 - 23:59 )//  w  w  w. j a v  a2  s. c om
 * @param mainLayout
 */
private void createRunRedirectTime(VerticalLayout mainLayout) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    mainLayout.addComponent(layout);

    Label caption = new Label("");
    caption.setWidth("-1px");
    caption.setDescription("<B></B>");
    layout.addComponent(caption);

    startRedirectHour = new ComboBox();
    startRedirectHour.setImmediate(true);
    startRedirectHour.setWidth("50px");
    startRedirectHour.setNullSelectionAllowed(false);
    layout.addComponent(startRedirectHour);

    Label space1 = new Label(" ");
    space1.setWidth("-1px");
    layout.addComponent(space1);

    startRedirectMinute = new ComboBox();
    startRedirectMinute.setImmediate(true);
    startRedirectMinute.setWidth("50px");
    startRedirectMinute.setNullSelectionAllowed(false);
    layout.addComponent(startRedirectMinute);

    Label to = new Label(" - ");
    to.setWidth("-1px");
    layout.addComponent(to);

    stopRedirectHour = new ComboBox();
    stopRedirectHour.setImmediate(true);
    stopRedirectHour.setWidth("50px");
    stopRedirectHour.setNullSelectionAllowed(false);
    layout.addComponent(stopRedirectHour);

    Label space2 = new Label(" ");
    space2.setWidth("-1px");
    layout.addComponent(space2);

    stopRedirectMinute = new ComboBox();
    stopRedirectMinute.setImmediate(true);
    stopRedirectMinute.setWidth("50px");
    stopRedirectMinute.setNullSelectionAllowed(false);
    layout.addComponent(stopRedirectMinute);

    for (int hour = 0; hour < 24; hour++) {
        startRedirectHour.addItem(hour);
        stopRedirectHour.addItem(hour);
    }

    for (int minute = 0; minute < 60; minute++) {
        startRedirectMinute.addItem(minute);
        stopRedirectMinute.addItem(minute);
    }

    startRedirectHour.setValue(18);
    stopRedirectHour.setValue(23);
    startRedirectMinute.setValue(0);
    stopRedirectMinute.setValue(59);

    startRedirectHour.setReadOnly(true);
    startRedirectMinute.setReadOnly(true);
    stopRedirectHour.setReadOnly(true);
    stopRedirectMinute.setReadOnly(true);
}

From source file:com.jiangyifen.ec2.ui.csr.toolbar.CsrPhone2PhoneSettingWindow.java

/**
 *  (noanswer?unonline?busy?force)//  ww w  . ja v a 2  s. com
 * @param mainLayout
 */
private void createlRedirectType(VerticalLayout mainLayout) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    mainLayout.addComponent(layout);

    Label caption = new Label("");
    caption.setWidth("-1px");
    caption.setDescription("<B>????</B>");
    layout.addComponent(caption);

    redirectTypeOption = new OptionGroup();
    redirectTypeOption.addItem("noanswer");
    redirectTypeOption.setItemCaption("noanswer", "?");
    redirectTypeOption.addItem("busy");
    redirectTypeOption.setItemCaption("busy", "");
    redirectTypeOption.addItem("unonline");
    redirectTypeOption.setItemCaption("unonline", "");
    redirectTypeOption.setNullSelectionAllowed(false);
    redirectTypeOption.addListener(this);
    redirectTypeOption.setImmediate(true);
    redirectTypeOption.setMultiSelect(true);
    redirectTypeOption.addStyleName("threecol300");
    redirectTypeOption.addStyleName("myopacity");
    redirectTypeOption.setReadOnly(true);
    redirectTypeOption
            .setDescription("<B>????</B>");
    layout.addComponent(redirectTypeOption);
}

From source file:com.jiangyifen.ec2.ui.csr.toolbar.CsrPhone2PhoneSettingWindow.java

/**
 * ?? /*from w  ww  .  j  a  v a2s  .  c o m*/
 * @param mainLayout
 */
private void createNoanwserTimeout(VerticalLayout mainLayout) {
    noanswerLayout = new HorizontalLayout();
    noanswerLayout.setSpacing(true);
    noanswerLayout.setVisible(false);
    mainLayout.addComponent(noanswerLayout);

    Label freCaption = new Label("?");
    freCaption.setWidth("-1px");
    freCaption.setDescription(
            "<B>'?'??</B>");
    noanswerLayout.addComponent(freCaption);

    noanswerTimeoutSelector = new ComboBox();
    noanswerTimeoutSelector.setImmediate(true);
    noanswerTimeoutSelector.setWidth("50px");
    noanswerTimeoutSelector.setNullSelectionAllowed(false);
    noanswerTimeoutSelector.setDescription(
            "<B>'?'??</B>");
    noanswerLayout.addComponent(noanswerTimeoutSelector);

    for (int seconds = 3; seconds < 61; seconds++) {
        noanswerTimeoutSelector.addItem(seconds);
    }
    noanswerTimeoutSelector.setValue(10);
    noanswerTimeoutSelector.setReadOnly(true);

    Label postCaption = new Label(" ");
    postCaption.setWidth("-1px");
    postCaption.setDescription(
            "<B>'?'??</B>");
    noanswerLayout.addComponent(postCaption);
}

From source file:com.jiangyifen.ec2.ui.mgr.system.tabsheet.MgrPhone2PhoneSettingView.java

/**
 * ?/*from   w w w  . jav  a2  s.c  o m*/
 * @param panelContent
 */
private void createStartSetting(VerticalLayout panelContent) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    panelContent.addComponent(layout);

    Label caption = new Label("?");
    caption.setWidth("-1px");
    caption.setDescription(
            "<B>????</B>");
    layout.addComponent(caption);

    startSettingOption = new OptionGroup();
    startSettingOption.addItem(true);
    startSettingOption.addItem(false);
    startSettingOption.setItemCaption(true, "?");
    startSettingOption.setItemCaption(false, "");
    startSettingOption.setImmediate(true);
    startSettingOption.setReadOnly(true);
    startSettingOption.setDescription(
            "<B>????</B>");
    startSettingOption.setNullSelectionAllowed(false);
    startSettingOption.addStyleName("twocol200");
    startSettingOption.addStyleName("myopacity");
    layout.addComponent(startSettingOption);
}

From source file:com.jiangyifen.ec2.ui.mgr.system.tabsheet.MgrPhone2PhoneSettingView.java

/**
 * ?CSR ?// www  .jav  a  2s . c  o m
 * @param panelContent
 */
private void createLicensed2Csr(VerticalLayout panelContent) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    panelContent.addComponent(layout);

    Label caption = new Label("???");
    caption.setWidth("-1px");
    caption.setDescription("<B>???</B>");
    layout.addComponent(caption);

    licensed2CsrOption = new OptionGroup();
    licensed2CsrOption.addItem(true);
    licensed2CsrOption.addItem(false);
    licensed2CsrOption.setItemCaption(true, "");
    licensed2CsrOption.setItemCaption(false, "?");
    licensed2CsrOption.setImmediate(true);
    licensed2CsrOption.setReadOnly(true);
    licensed2CsrOption
            .setDescription("<B>???</B>");
    licensed2CsrOption.setNullSelectionAllowed(false);
    licensed2CsrOption.addStyleName("twocol200");
    licensed2CsrOption.addStyleName("myopacity");
    layout.addComponent(licensed2CsrOption);
}

From source file:com.jiangyifen.ec2.ui.mgr.system.tabsheet.MgrPhone2PhoneSettingView.java

/**
 *  (????)//from  w w w  . ja v  a2 s . com
 * @param panelContent
 */
private void createDaysOfWeekType(VerticalLayout panelContent) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    panelContent.addComponent(layout);

    Label caption = new Label("");
    caption.setWidth("-1px");
    caption.setDescription("<B>?</B>");
    layout.addComponent(caption);

    dayOfWeekTypeSelector = new ComboBox();
    dayOfWeekTypeSelector.addItem("weekday");
    dayOfWeekTypeSelector.setItemCaption("weekday", "");
    dayOfWeekTypeSelector.addItem("weekend");
    dayOfWeekTypeSelector.setItemCaption("weekend", "");
    dayOfWeekTypeSelector.addItem("custom");
    dayOfWeekTypeSelector.setItemCaption("custom", "");
    dayOfWeekTypeSelector.setWidth("200px");
    dayOfWeekTypeSelector.setImmediate(true);
    dayOfWeekTypeSelector.setReadOnly(true);
    dayOfWeekTypeSelector.setDescription("<B>?</B>");
    dayOfWeekTypeSelector.setNullSelectionAllowed(false);
    dayOfWeekTypeSelector.addListener(this);
    layout.addComponent(dayOfWeekTypeSelector);
}

From source file:com.jiangyifen.ec2.ui.mgr.system.tabsheet.MgrPhone2PhoneSettingView.java

/**
 * (??...) ???//from   www.j  av  a  2s .c  om
 * @param panelContent
 */
private void createDayOfWeek(VerticalLayout panelContent) {
    dayOfWeekLayout = new HorizontalLayout();
    dayOfWeekLayout.setSpacing(true);
    dayOfWeekLayout.setVisible(false);
    panelContent.addComponent(dayOfWeekLayout);

    Label caption = new Label("");
    caption.setWidth("-1px");
    caption.setDescription("<B>?</B>");
    dayOfWeekLayout.addComponent(caption);

    BeanItemContainer<DayOfWeek> container = new BeanItemContainer<DayOfWeek>(DayOfWeek.class);
    container.addBean(DayOfWeek.mon);
    container.addBean(DayOfWeek.tue);
    container.addBean(DayOfWeek.wen);
    container.addBean(DayOfWeek.thu);
    container.addBean(DayOfWeek.fri);
    container.addBean(DayOfWeek.sat);
    container.addBean(DayOfWeek.sun);

    daysOfWeekOption = new OptionGroup();
    daysOfWeekOption.setContainerDataSource(container);
    daysOfWeekOption.setItemCaptionPropertyId("name");
    daysOfWeekOption.setMultiSelect(true);
    daysOfWeekOption.setNullSelectionAllowed(false);
    daysOfWeekOption.setImmediate(true);
    daysOfWeekOption.setReadOnly(true);
    daysOfWeekOption.setDescription("<B>?</B>");
    daysOfWeekOption.addStyleName("threecol");
    daysOfWeekOption.addStyleName("myopacity");
    dayOfWeekLayout.addComponent(daysOfWeekOption);
}

From source file:com.jiangyifen.ec2.ui.mgr.system.tabsheet.MgrPhone2PhoneSettingView.java

/**
 * ? (18:00 - 23:59 )/* ww  w.  j a v a2s.  c om*/
 * @param panelContent
 */
private void createRunRedirectTime(VerticalLayout panelContent) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    panelContent.addComponent(layout);

    Label caption = new Label("");
    caption.setWidth("-1px");
    caption.setDescription("<B></B>");
    layout.addComponent(caption);

    startRedirectHour = new ComboBox();
    startRedirectHour.setImmediate(true);
    startRedirectHour.setWidth("50px");
    startRedirectHour.setNullSelectionAllowed(false);
    layout.addComponent(startRedirectHour);

    Label space1 = new Label(" ");
    space1.setWidth("-1px");
    layout.addComponent(space1);

    startRedirectMinute = new ComboBox();
    startRedirectMinute.setImmediate(true);
    startRedirectMinute.setWidth("50px");
    startRedirectMinute.setNullSelectionAllowed(false);
    layout.addComponent(startRedirectMinute);

    Label to = new Label(" - ");
    to.setWidth("-1px");
    layout.addComponent(to);

    stopRedirectHour = new ComboBox();
    stopRedirectHour.setImmediate(true);
    stopRedirectHour.setWidth("50px");
    stopRedirectHour.setNullSelectionAllowed(false);
    layout.addComponent(stopRedirectHour);

    Label space2 = new Label(" ");
    space2.setWidth("-1px");
    layout.addComponent(space2);

    stopRedirectMinute = new ComboBox();
    stopRedirectMinute.setImmediate(true);
    stopRedirectMinute.setWidth("50px");
    stopRedirectMinute.setNullSelectionAllowed(false);
    layout.addComponent(stopRedirectMinute);

    for (int hour = 0; hour < 24; hour++) {
        startRedirectHour.addItem(hour);
        stopRedirectHour.addItem(hour);
    }

    for (int minute = 0; minute < 60; minute++) {
        startRedirectMinute.addItem(minute);
        stopRedirectMinute.addItem(minute);
    }

    startRedirectHour.setValue(18);
    stopRedirectHour.setValue(23);
    startRedirectMinute.setValue(0);
    stopRedirectMinute.setValue(59);

    startRedirectHour.setReadOnly(true);
    startRedirectMinute.setReadOnly(true);
    stopRedirectHour.setReadOnly(true);
    stopRedirectMinute.setReadOnly(true);
}

From source file:com.jiangyifen.ec2.ui.mgr.system.tabsheet.MgrPhone2PhoneSettingView.java

/**
 *  (noanswer?unonline?busy?force)/*  w ww.j  a  v a  2s.  c  om*/
 * @param panelContent
 */
private void createRedirectType(VerticalLayout panelContent) {
    HorizontalLayout layout = new HorizontalLayout();
    layout.setSpacing(true);
    panelContent.addComponent(layout);

    Label caption = new Label("");
    caption.setWidth("-1px");
    caption.setDescription("<B>????</B>");
    layout.addComponent(caption);

    redirectTypeOption = new OptionGroup();
    redirectTypeOption.addItem("noanswer");
    redirectTypeOption.setItemCaption("noanswer", "?");
    redirectTypeOption.addItem("busy");
    redirectTypeOption.setItemCaption("busy", "");
    redirectTypeOption.addItem("unonline");
    redirectTypeOption.setItemCaption("unonline", "");
    redirectTypeOption.setNullSelectionAllowed(false);
    redirectTypeOption.addListener(this);
    redirectTypeOption.setImmediate(true);
    redirectTypeOption.setMultiSelect(true);
    redirectTypeOption.addStyleName("threecol");
    redirectTypeOption.addStyleName("myopacity");
    redirectTypeOption.setReadOnly(true);
    redirectTypeOption
            .setDescription("<B>????</B>");
    layout.addComponent(redirectTypeOption);
}