Package net.sourceforge.processdash.ev

Examples of net.sourceforge.processdash.ev.MilestoneList


                    && e instanceof MouseEvent
                    && isFlatView()) {
                double absX = ((MouseEvent) e).getPoint().getX();
                double relX = absX - getCellRect(row, col, false).getX();
                if (0 <= relX && relX <= 14) {
                    MilestoneList mVal = (MilestoneList) getValueAt(row, col);
                    if (mVal != null && mVal.size() == 1)
                        toggleActiveMilestone(mVal.get(0));
                }
                return true;
            }
            return false;
        }
View Full Code Here


                    Object value, boolean isSelected, boolean hasFocus,
                    int row, int column) {
                Component result = super.getTableCellRendererComponent(table,
                    value, isSelected, hasFocus, row, column);

                MilestoneList mVal = (MilestoneList) value;
                boolean isActiveMilestone = isActiveMilestone(mVal);

                if (row != mouseOverMilestoneRow //
                        || mVal == null || mVal.size() != 1) {
                    setIcon(null);
                    checkboxTip = null;
                } else {
                    setIcon(isActiveMilestone ? checkedIcon : uncheckedIcon);
                    checkboxTip = resources.format(
                        "Task.Milestone_Date.Checkbox_Tip_FMT", //
                        mVal.get(0).toString());
                }

                if (isActiveMilestone) {
                    setBackground(activeMilestoneColor);
                    setOpaque(true);
View Full Code Here

        public String getAttributes(Object value, int row, int column) {
            if (value == null)
                return getSortAttribute("99999");

            MilestoneList l = (MilestoneList) value;
            StringBuilder result = new StringBuilder();
            result.append(getSortAttribute(Integer.toString(l
                    .getMinSortOrdinal())));

            if (l.isMissedMilestone()) {
                String errMsg = l.getMissedMilestoneMessage();
                result.append(" class=\"behindSchedule\" title=\"")
                        .append(HTMLUtils.escapeEntities(errMsg)).append("\"");
            }

            return result.toString();
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ev.MilestoneList

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.