/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.expenses.client.style; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.CssResource; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.resources.client.CssResource.NotStrict; /** * The Styles used in bikeshed. */ public class Styles { /** * Common styles. */ public interface Common extends CssResource { String approvedOption(); String blankOption(); String box(); String deniedOption(); /** * Applied to the amount column in ExpenseDetails. */ String expenseDetailsAmountColumn(); /** * Applied to the approval column in ExpenseDetails. */ String expenseDetailsApprovalColumn(); /** * Applied to the category column in ExpenseDetails. */ String expenseDetailsCategoryColumn(); /** * Applied to the date column in ExpenseDetails. */ String expenseDetailsDateColumn(); /** * Applied to the message in the error popup. */ String expenseDetailsErrorPopupMessage(); /** * Applied to the created column in ExpenseList. */ String expenseListCreatedColumn(); /** * Applied to the department column in ExpenseList. */ String expenseListDepartmentColumn(); /** * Applied to the purpose column in ExpenseList. */ String expenseListPurposeColumn(); String header(); String headerLeft(); String headerMain(); String padded(); /** * Applied to popup panels. */ String popupPanel(); /** * Applied to columns used as spacers. */ String spacerColumn(); String table(); /** * Applied to the username portion of a tree item. */ String usernameTreeItem(); /** * Applied to the username portion of a tree item when selected. */ String usernameTreeItemSelected(); } /** * Shared resources. */ public interface Resources extends ClientBundle { @NotStrict @Source("common.css") Common common(); /** * Icon used to represent an approved item. */ ImageResource approvedIcon(); /** * Blank icon used for spacing. */ ImageResource blankIcon(); /** * Icon used to represent a denied item. */ ImageResource deniedIcon(); /** * Icon used to represent an error. */ ImageResource errorIcon(); /** * Icon used to represent a user group. */ ImageResource groupIcon(); /** * Animated image used to indicate a pending change. */ ImageResource pendingCommit(); /** * Right rounded corner of a search box. */ ImageResource searchRight(); /** * Icon used to represent a user. */ ImageResource userIcon(); } private static Resources resources; static { resources = GWT.create(Resources.class); resources.common().ensureInjected(); } public static Common common() { return resources.common(); } public static Resources resources() { return resources; } }