Package util.ui

Examples of util.ui.TimeFormatter


    }
   
    private void createContent() {try {
      mGridPn.removeAll();
     
      TimeFormatter formatter = new TimeFormatter();
     
      int[] times = Settings.propTimeButtons.getIntArray();
     
      for (final int time : times) {
        int h = time/60;
        int m = time%60;
        JButton btn = new JButton(formatter.formatTime(h, m));
        mGridPn.add(btn);
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent arg0) {
            mParent.scrollToTime(time);
          }
View Full Code Here


  private JComponent mTableWest;
  private TimeFormatter mFormatter;

  public TimeBlockBackPainter() {
    if (Settings.propTwelveHourFormat.getBoolean()) {
      mFormatter = new TimeFormatter("hh a");
    } else {
      mFormatter = new TimeFormatter("HH");
    }
    mBackgroundImage1 = ImageUtilities
        .createImageAsynchronous(Settings.propTimeBlockBackground1.getString());
    mBackgroundImage2 = ImageUtilities
        .createImageAsynchronous(Settings.propTimeBlockBackground2.getString());
View Full Code Here

      data.add(TIMETEXT[i]);
    }
    ArrayList<Integer> separators = new ArrayList<Integer>();
    separators.add(data.size());

    TimeFormatter formatter = new TimeFormatter();

    for (int time : mTimes) {
      int h = time / 60;
      int m = time % 60;
      StringBuilder builder = new StringBuilder();
      builder.append(mLocalizer.msg("at", "at"));
      builder.append(' ');
      builder.append(formatter.formatTime(h, m));
      data.add(builder.toString());
    }
    separators.add(data.size());

    data.add(mLocalizer.ellipsisMsg("configureTimes","Configure Times"));
View Full Code Here

TOP

Related Classes of util.ui.TimeFormatter

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.