Recently finished making this!
Getting displays for IDs in EXT-JS
How to get the value from a combobox to use as a display text
Jobs in Hydra
Continuing in Hydra land, one of the pinnacle objects is the Job. These jobs represent the construction of information from a source. Think of it as the worker, milling away to create the DataTree. IJob The IJob interface lays the foundation. It has many properties defining the characteristics of a job, such as start time, […]
Secondary Events in a Character’s Story
As I’m working out the story of my second novel, I’m facing the challenge of describing too many of events in the life of my protagonist. Relationships take time to develop, and the overall story requires these relationships. Relationships, especially between men, are forged through experience. But the main plot doesn’t need the events, just […]
Accessing Spring Properties
Spring’s IoC is wonderful, and annotating classes for auto-configuration and wiring is exceptionally useful. But when you have a primitive value to set on an object, it can be tedious to manually define the bean in your context.xml. Here is an example: Now, I could set the host as a bean in the context.xml: But, […]
More Domain Entities
Domain entities, the counter to transfer objects, embrace the idea that objects can be smarter than a post-it. Through domain-driven design, these objects understand that they have properties, and can ease the burden on the rest of an application by performing some of the behavior itself. This also reduces feature envy (see more on code […]
Events for EXT-JS
There are many events in EXT-JS to which you can ascribe listeners to do some neat things. But to which event should you attach functionality? Well, some are pretty clear, such as the select event on the selection model of a grid, allowing you to do things with a row selection. Or using mouseover to […]
Creating Displayable Text
Working on cycling through the fields of an object, and programmatically building a user friendly display text for each. To simplify my life, I’m using reflection, and the following method to capitalize the field name, and insert spaces appropriately (for camel-case field names):
Getting Started with Hydra
AddThis recently released Hydra on the open source community, and with my proximity to this technology, I thought it would be a wonderful winter adventure to peruse the code base. After cloning the project from GitHub, I required updating/adding Java 7 to my Eclipse environment. It was a bit more tedious than I expected. I […]
Formatted Number Column in EXT-JS Grid
The standard display of a number in a grid panel contains no delimiters or decimals. If you want to add one, you can apply a renderer to the column. [code language=”javascript”] { header : ‘Total Population’, dataIndex : ‘population’, width:70, renderer : function() { return Ext.util.Format.numberRenderer(‘0,000’); } } [/code] I prefer to externalize this to […]