当前位置: 首页>>代码示例>>Java>>正文


Java CurrentDate.set方法代码示例

本文整理汇总了Java中net.sf.memoranda.date.CurrentDate.set方法的典型用法代码示例。如果您正苦于以下问题:Java CurrentDate.set方法的具体用法?Java CurrentDate.set怎么用?Java CurrentDate.set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sf.memoranda.date.CurrentDate的用法示例。


在下文中一共展示了CurrentDate.set方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
	IconFontSwing.register(GoogleMaterialDesignIcons.getIconFont());
	projBeforeTest = ProjectManager.getAllProjectsNumber();
	activeProjBeforeTest = ProjectManager.getActiveProjectsNumber();
	tp1 = ProjectManager.createProject("testProj1", new CalendarDate(1,3,2017), new CalendarDate(1,4,2017));
	tp2 = ProjectManager.createProject("testProj2", new CalendarDate(1,3,2017), null);
	tp3 = ProjectManager.createProject("testProj3", new CalendarDate(1,3,2017), new CalendarDate(15,3,2017));
	tp4 = ProjectManager.createProject("testProj4", new CalendarDate(1,4,2017), new CalendarDate(1,5,2017));
	tp5 = ProjectManager.createProject("testProj5", new CalendarDate(1,4,2017), new CalendarDate(1,5,2017), "Green");
	CurrentDate.set(new CalendarDate(17,3,2017));
}
 
开发者ID:ser316asu,项目名称:SER316-Dresden,代码行数:13,代码来源:ProjectManagerTest.java

示例2: testEventsTableDaily

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
@Test
public void testEventsTableDaily() {
	
	CalendarDate td1 = new CalendarDate(13,2,2017);//should encompass tev2,tev3
	CalendarDate td2 = new CalendarDate(2,2,2017);//should encompass tev1
	CurrentDate.set(td1);
	EventsTableDaily testPan1 = new EventsTableDaily();
	assertTrue(testPan1.getEventAt(0, EventsTableDaily.EVENT).equals(tev2));
	assertTrue(testPan1.getEventAt(1, EventsTableDaily.EVENT).equals(tev3));
	CurrentDate.set(td2);
	testPan1.refresh();
	assertTrue(testPan1.getEventAt(0, EventsTableDaily.EVENT).equals(tev1));
}
 
开发者ID:ser316asu,项目名称:SER316-Dresden,代码行数:14,代码来源:EventsTableTest.java

示例3: testEventsTableWeekly

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
@Test
public void testEventsTableWeekly() {
	
	CalendarDate td1 = new CalendarDate(13,2,2017);
	CalendarDate td2 = new CalendarDate(2,2,2017);
	CurrentDate.set(td2);
	EventsTableWeekly testPan1 = new EventsTableWeekly();
	assertTrue(testPan1.getEventAt(0, 4).equals(tev1));
	assertTrue(testPan1.getEventAt(0, 5).equals(tev2));
	CurrentDate.set(td1);
	testPan1.refresh();
	assertTrue(testPan1.getEventAt(0, 1).equals(tev2));
	assertTrue(testPan1.getEventAt(1, 1).equals(tev3));
}
 
开发者ID:ser316asu,项目名称:SER316-Dresden,代码行数:15,代码来源:EventsTableTest.java

示例4: testEventsTableMonthly

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
@Test
public void testEventsTableMonthly() {
	CalendarDate td1 = new CalendarDate(13,2,2017);//should encompass tev2,tev3
	CurrentDate.set(td1);
	EventsTableMonthly testPan1 = new EventsTableMonthly();
	assertTrue(testPan1.getEventAt(0, 0).equals(tev1));
	assertTrue(testPan1.getEventAt(1, 0).equals(tev2));
	assertTrue(testPan1.getEventAt(2, 1).equals(tev3));
	assertTrue(testPan1.getEventAt(0, 1).equals(tev3));
	assertTrue(testPan1.getEventAt(1, 1).equals(tev2));
	assertTrue(testPan1.getEventAt(0, 2).equals(tev2));
	assertTrue(testPan1.getEventAt(1, 2).equals(tev3));
}
 
开发者ID:ser316asu,项目名称:SER316-Dresden,代码行数:14,代码来源:EventsTableTest.java

示例5: setActiveNote

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
void setActiveNote() {
      Note note = (Note) notesList.getNote(notesList.getSelectedIndex());
      CurrentDate.set(note.getDate());
CurrentNote.set(note,true);
  }
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:6,代码来源:NotesControlPanel.java

示例6: historyChanged

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
void historyChanged(HistoryItem hi) {
    changedByHistory = true;
    CurrentProject.set(hi.getProject());
    CurrentDate.set(hi.getDate());
    changedByHistory = false;
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:7,代码来源:DailyItemsPanel.java

示例7: setActiveNote

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
void setActiveNote() {
    Note note = (Note) notesList.getNote(notesList.getSelectedIndex());
    CurrentDate.set(note.getDate());
    CurrentNote.set(note,true);
}
 
开发者ID:ser316asu,项目名称:SER316-Dresden,代码行数:6,代码来源:NotesControlPanel.java

示例8: setActiveNote

import net.sf.memoranda.date.CurrentDate; //导入方法依赖的package包/类
void setActiveNote() {
	Note note = (Note) notesList.getNote(notesList.getSelectedIndex());
	CurrentDate.set(note.getDate());
	CurrentNote.set(note, true);
}
 
开发者ID:ser316asu,项目名称:Dahlem_SER316,代码行数:6,代码来源:NotesControlPanel.java


注:本文中的net.sf.memoranda.date.CurrentDate.set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。