Package com.googlecode.wicket.jquery.core

Examples of com.googlecode.wicket.jquery.core.Options


   
    final AppointmentDialog dialog = new AppointmentDialog("appointment", WebSession.getString(815)
        , this, new CompoundPropertyModel<Appointment>(getDefault()));
    add(dialog);
   
    Options options = new Options();
    options.set("header", "{left: 'prevYear,prev,next,nextYear today', center: 'title', right: 'month,agendaWeek,agendaDay'}");
    options.set("allDaySlot", false);
    options.set("axisFormat", "'HH(:mm)'");
    options.set("defaultEventMinutes", 60);
    options.set("timeFormat", "{agenda: 'HH:mm{ - HH:mm}', '': 'HH(:mm)'}");

    options.set("buttonText", "{month: '" + WebSession.getString(801) +
                "', week: '" + WebSession.getString(800) +
                "', day: '"  + WebSession.getString(799) +
                "', today: '"  + WebSession.getString(1555) +
                "'}");

    JSONArray monthes = new JSONArray();
    JSONArray shortMonthes = new JSONArray();
    JSONArray days = new JSONArray();
    JSONArray shortDays = new JSONArray();
    try {
      // first week day must be Sunday
      days.put(0, WebSession.getString(466));
      shortDays.put(0, WebSession.getString(459));
      for (int i=0; i < 12; i++){
        monthes.put(i, WebSession.getString(469 + i));
        shortMonthes.put(i, WebSession.getString(1556 + i));
        if (i+1 < 7){
          days.put(i+1, WebSession.getString(460 + i));
          shortDays.put(i+1, WebSession.getString(453 + i));         
        }
      }
    } catch (JSONException e) {
      log.error("Unexpected error while creating label lists", e);
    }
    options.set("monthNames", monthes.toString());
    options.set("monthNamesShort", shortMonthes.toString());
    options.set("dayNames", days.toString());
    options.set("dayNamesShort", shortDays.toString());
   
    calendar = new Calendar("calendar", new AppointmentModel(), options) {
      private static final long serialVersionUID = 8442068089963449950L;
     
      @Override
View Full Code Here


    ISO8601.setTimeZone(getUserTimeZone());
  }

  @Override
  protected Options createOptions() {
    Options o = super.createOptions();
    if (getStart() != null) {
      o.set("start", "\"" + ISO8601.format(getStart()) + "\"");
    }
    if (getEnd() != null) {
      o.set("end", "\"" + ISO8601.format(getEnd()) + "\"");
    }
    return o;
  }
View Full Code Here

    addPanel(panels, getTabId(MESSAGES_TAB_ID), new MessagesContactsPanel("tab"));
    addPanel(panels, getTabId(EDIT_PROFILE_TAB_ID), new ProfilePanel("tab"));
    addPanel(panels, getTabId(SEARCH_TAB_ID), new UserSearchPanel("tab"));
    addPanel(panels, getTabId(DASHBOARD_TAB_ID), new WidgetsPanel("tab"));
   
    add(new JQueryBehavior("#tabs", "tabs", new Options("active", active)) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void renderScript(JavaScriptHeaderItem script, IHeaderResponse response) {
        response.render(new PriorityHeaderItem(script));
View Full Code Here

   
    final AppointmentDialog dialog = new AppointmentDialog("appointment", WebSession.getString(815)
        , this, new CompoundPropertyModel<Appointment>(getDefault()));
    add(dialog);
   
    Options options = new Options();
    options.set("header", "{left: 'prevYear,prev,next,nextYear today', center: 'title', right: 'month,agendaWeek,agendaDay'}");
    options.set("allDaySlot", false);
    options.set("axisFormat", "'HH(:mm)'");
    options.set("defaultEventMinutes", 60);
    options.set("timeFormat", "{agenda: 'HH:mm{ - HH:mm}', '': 'HH(:mm)'}");

    options.set("buttonText", "{month: '" + WebSession.getString(801) +
                "', week: '" + WebSession.getString(800) +
                "', day: '"  + WebSession.getString(799) +
                "', today: '"  + WebSession.getString(1555) +
                "'}");

    JSONArray monthes = new JSONArray();
    JSONArray shortMonthes = new JSONArray();
    JSONArray days = new JSONArray();
    JSONArray shortDays = new JSONArray();
    try {
      // first week day must be Sunday
      days.put(0, WebSession.getString(466));
      shortDays.put(0, WebSession.getString(459));
      for (int i=0; i < 12; i++){
        monthes.put(i, WebSession.getString(469 + i));
        shortMonthes.put(i, WebSession.getString(1556 + i));
        if (i+1 < 7){
          days.put(i+1, WebSession.getString(460 + i));
          shortDays.put(i+1, WebSession.getString(453 + i));         
        }
      }
    } catch (JSONException e) {
      log.error("Unexpected error while creating label lists", e);
    }
    options.set("monthNames", monthes.toString());
    options.set("monthNamesShort", shortMonthes.toString());
    options.set("dayNames", days.toString());
    options.set("dayNamesShort", shortDays.toString());
   
    calendar = new Calendar("calendar", new AppointmentModel(), options) {
      private static final long serialVersionUID = 8442068089963449950L;
     
      @Override
View Full Code Here

 
  public FormSaveRefreshPanel(String id, Form<T> form) {
    super(id);
    setOutputMarkupId(true);

    feedback = new KendoFeedbackPanel("feedback", new Options("button", true));
    add(feedback.setOutputMarkupId(true));

    // add a save button that can be used to submit the form via ajax
    add(new AjaxButton("ajax-save-button", form) {
      private static final long serialVersionUID = 1L;
View Full Code Here


    public TextFieldWithDatePicker(String id, IModel<T> model, Class<T> type, DateConverter<T> converter) {
        super(id, model, type);
        this.converter = converter;
        options = new Options();
        final String datePickerPattern = converter.getDatePickerPattern(getLocale());
        options.set("dateFormat", "\"" + datePickerPattern + "\"");
        options.set("changeMonth", true);
        options.set("changeYear", true);
        options.set("showButtonPanel", true);
View Full Code Here

TOP

Related Classes of com.googlecode.wicket.jquery.core.Options

Copyright © 2018 www.massapicom. 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.