Lively Kernel canvas
* MIT license
*
* Includes enhancements by Scott Trenda
* and Kris Kowal
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.]]> 99 ? Math.round(L / 10) : L),
]]> 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs]]> 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
};
return mask.replace(token, function ($0) {
return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
});
};
}();
// Some common format strings
dateFormat.masks = {
"default": "ddd mmm dd yyyy HH:MM:ss",
shortDate: "m/d/yy",
mediumDate: "mmm d, yyyy",
longDate: "mmmm d, yyyy",
fullDate: "dddd, mmmm d, yyyy",
shortTime: "h:MM TT",
mediumTime: "h:MM:ss TT",
longTime: "h:MM:ss TT Z",
isoDate: "yyyy-mm-dd",
isoTime: "HH:MM:ss",
isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
};
// Internationalization strings
dateFormat.i18n = {
dayNames: [
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
],
monthNames: [
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
]
};
// For convenience...
Date.prototype.format = function (mask, utc) {
return dateFormat(this, mask, utc);
};]]>
DevelopmentJournaloftheGrid-LayoutTeam40true
savefalsenulltruenull
newentryfalsenulltruefalsetrue
null
sortfalsenulltruefalsetrue
null
reversefalsenulltruefalsetrue
true
2010-07-05,MonFirstlivelypresentationadded:http://www.lively-kernel.org/repository/webwerkstatt/projects/Grid/presentation/introduction/title.xhtml18
2010-06-14,MonDonelastweek:Firstgridlinedraggingwasimplemented.Problems:Whendraggingaline,itmustbemoved.WetriedthemethodsmoveByandtranslateBy,bothdidnotshowanyresult.Linesatthecontainerbordermustalsoresizethewholecontainer.Butwhenshouldthisbedone?Whiledraggingtheline,wouldraiseperformanceproblems.Doingitafterdraggingwouldsolvethatproblem.Butduringdragging,youwouldnotseeprecislythepossibleeffect.18
1
2010-05-31,MonOriginalGoal:-Implementgridbaglayoutconceptinlivelykernel.Progresslastweek:-Implementationofbasicmorphaddingandremoving-Cellassignment-Relocationofcodecontainermorph->layoutManager-RemoveofsomeminorbugsDemopage:-Seeplayground:http://www.lively-kernel.org/repository/webwerkstatt/projects/Grid/playground.xhtmlPlansforthisweek:-Implementationofsimplerelocationpolicy-ImplementationofsimpleresizingpolicyWorstthingsaboutLivelyfromthisweek:-Shortcutsoftendonotwork-Wrongcode+save=>evenworsecodeBestthingsaboutLivelyfromthisweek:-Livelymakescollaborationeasy-Easytoresumelastcodingsession18 layoutManager\n- Remove of some minor bugs\n\nDemo page:\n- See playground: http://www.lively-kernel.org/repository/webwerkstatt/projects/Grid/playground.xhtml \n\nPlans for this week:\n- Implementation of simple relocation policy\n- Implementation of simple resizing policy\n\nWorst things about Lively from this week:\n- Shortcuts often do not work\n- Wrong code + save => even worse code\n\nBest things about Lively from this week:\n- Lively makes collaboration easy\n- Easy to resume last coding session"]]>25
2010-05-17,MonProgresslastweek:-Layoutcontainercreated,firstcallbacksintegrated-Furthertesting&learningwithLivelyKernelPlansforthisweek:-Implementationofasimplelayoutalgorithm-Creationofuserinteractionconcept-Addingofnewmenuitems189
2010-05-10,MonOriginalGoal:-Implementgridbaglayoutconceptinlivelykernel.Progresslastweek:-Gottoknowlively-Implementationoffirstmodule,classandLayoutManager-Creationoftestingareaaka.playgroundDemopage:-SeeplaygroundPlansforthisweek:-Creationoffirstgridbaglayoutcontainer-Furthertestingwithfocusoncallbackse.g.fornewaddedmorph-DevelopmentofanaligmentalgorithmWorstthingsaboutLivelyfromthisweek:-Shortcutsoftendonotwork-Documentationisoutofdate-Noclass,modulerenameormovefunctionality-Nogeneralclassbrowserforallclassese.g.thelivel.*onesBestthingsaboutLivelyfromthisweek:-EasytoaddnewMorphviaclick-Localclassbrowser-Youcanevaluatetheeffectofchangesquickly(doit)1827
2010-04-30,FriRequirements:-Dynamicalignmentofmultipleobjectsincells-Horizontalandverticaldevisionofcanvasincells-Supportoffixedcolumns/dynamicrowsandfixedcolumns/fixedrowsmode-Supporteverypossiblemorphe.g.text,imagesetc.-Supportvertical/horizontalgaps-Itemscancovermultiplerowsandcolumns-differentvaluesforboxheight,widthpossibleOptionalRequirements:-Graphicaldesignermodewhichshowsgrid-Changerowandcolumncountwithouteditingthesourcecodeinsteadusingthemouse-ChildchangestriggerrerenderingUsefulLinks:GridLayoutinJAVA:http://java.sun.com/docs/books/tutorial/uiswing/layout/grid.htmlGridLayoutwithSVG:http://www.svgopen.org/2005/papers/LayoutManagersForSVG/PaperbyStefanKurlow:Anewobject-orientedtechniqueforbuildingadynamicGraphicalUserInterfaceBookbyJosefBrookmannGridSystemsinGraphicDesign/RasterSystemeFurDieVisueleGestaltunghttp://www.lively-kernel.org/repository/webwerkstatt/projects/Grid/playground.xhtml1832- null
highpriority:-verticallayouting-dragablegridlines(workinprogess)-enabletogglingoffixedsizecolomnsandlinesforusers-saving
4truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenulltruefalse
false
false
falsenullfalsefalsenullnullnullnullfalse
Wikicontroltruetrue
null193