Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Panel.addStyleName()


        radioButtonGroup.addRadioButton("Public", "Allow all users to view this profile.", "true", Boolean.TRUE);
        BasicRadioButtonFormElement privateButton = radioButtonGroup.addRadioButton("Private",
                "Restrict access to users approved by this group's coordinators.", "false", Boolean.FALSE);

        Panel extraInstructions = new FlowPanel();
        extraInstructions.addStyleName(StaticResourceBundle.INSTANCE.coreCss().groupPrivateExtraNote());
        extraInstructions.add(new InlineLabel("Please Note: "));
        extraInstructions.add(new InlineLabel(
                "This group's name and description will be visible whenever employees browse or search profiles."));
        privateButton.addToInstructions(extraInstructions);
View Full Code Here


     */
    public void render(final Panel renderContainer, final ItemRenderer itemRenderer,
            final PagedSet< ? extends Serializable> items, final String noItemsMessage)
    {
        Panel left = new FlowPanel();
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColLeft());
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel middle = new FlowPanel();
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColMiddle());
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());
View Full Code Here

    public void render(final Panel renderContainer, final ItemRenderer itemRenderer,
            final PagedSet< ? extends Serializable> items, final String noItemsMessage)
    {
        Panel left = new FlowPanel();
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColLeft());
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel middle = new FlowPanel();
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColMiddle());
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());
View Full Code Here

        Panel left = new FlowPanel();
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColLeft());
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel middle = new FlowPanel();
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColMiddle());
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel right = new FlowPanel();
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColRight());
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());
View Full Code Here

        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColLeft());
        left.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel middle = new FlowPanel();
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColMiddle());
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel right = new FlowPanel();
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColRight());
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());
View Full Code Here

        Panel middle = new FlowPanel();
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColMiddle());
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel right = new FlowPanel();
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColRight());
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        if (items.getTotal() == 0)
        {
            Label noItemsMessageLabel = new Label(noItemsMessage);
View Full Code Here

        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColMiddle());
        middle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        Panel right = new FlowPanel();
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionColRight());
        right.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionCol());

        if (items.getTotal() == 0)
        {
            Label noItemsMessageLabel = new Label(noItemsMessage);
            noItemsMessageLabel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionItemEmpty());
View Full Code Here

            body.add(more);
        }

        // timestamp and actions
        Panel timestampActions = new FlowPanel();
        timestampActions.addStyleName(StaticResourceBundle.INSTANCE.coreCss().commentTimestamp());
        body.add(timestampActions);

        DateFormatter dateFormatter = new DateFormatter(new Date());
        Label dateLink = new InlineLabel(dateFormatter.timeAgo(comment.getTimeSent()));
        dateLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().commentTimestamp());
View Full Code Here

     * Shows a "not found" message.
     */
    private void showNotFound()
    {
        Panel errorReport = new FlowPanel();
        errorReport.addStyleName(StaticResourceBundle.INSTANCE.coreCss().warningReport());

        FlowPanel centeringPanel = new FlowPanel();
        centeringPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().warningReportContainer());
        centeringPanel.add(errorReport);
        add(centeringPanel);
View Full Code Here

     * @return the rendered item as a FlowPanel.
     */
    public Panel render(final ActivityDTO msg)
    {
        Panel mainPanel = new FlowPanel();
        mainPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamMessageItem());
        mainPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().listItem());
        mainPanel.addStyleName(State.READONLY.toString());

        VerbRenderer verbRenderer = verbDictionary.get(msg.getVerb());
        verbRenderer.setup(objectDictionary, msg, State.DEFAULT, false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.