• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/18

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

18 Cards in this Set

  • Front
  • Back
What is the AcceptCriterion class used for?
Drag/drop client-side validation.
What kinds of AcceptCriterion are there? List what you can.
AbstractSelect.AcceptItem,
AbstractSelect.TargetItemIs,
AbstractSelect.VerticalLocationIs,
AcceptAll,
And,
ClientSideCriterion,
ContainsDataFlavor,
Not,
Or,
ServerSideCriterion,
SourceIs,
SourceIsTarget,
Table.TableDropCriterion,
TargetDetailIs,
Tree.TargetInSubtree,
Tree.TargetItemAllowsChildren,
Tree.TreeDropCriterion
(bug/workaround) How do you deal with disappearing components in a tree table?
Set each component to setImmediate(true)
Make a window modal
w.setModal(true);
Show a new window
this.getWindow().addWindow(w);
4 functions for getting vaadin tree table items as a *collection*?
rootItemIds() - gets root items
getItemIds() - only gets visible items
getChildren(itemId) - gets children of an item
List the types of layouts in vaadin, and their uses.
HorizontalLayout
VerticalLayout
GridLayout
AbsoluteLayout
??? others not listed.
How do you make a component expand to fit remaining space?
parent.setExpandRatio(...)
parent.setVerticalExpandRatio(...)
How do you find out if vaadin tree items can have sub-items?
tree.areChildrenAllowed(itemId)
How do you avoid having components disappear from a tree table when parent items are expanded and unexpanded?
?
?
How do you expand a tree item in a tree table?
parent.setCollapsed(itemId, false)
How do you know if a tree item is expanded?
parentTable.isCollapsed(itemId)
how do you change which column shows the expand buttons on a tree table?
setHierarchyColumn(columnId)
Is it possible to listen for opening/closing of tree items? Explain.
Yes. Add a Tree.ExpandListener object.
Ways to get vaadin tree table items
getIdByIndex(int)
getParent
lastItemId()
nextItemId()
...
http://lifehacker.com/5973887/the-janki-method-shortens-the-time-itll-take-you-to-learn-to-code
Every time you learn something new create a question and answer flashcard and add this card to Anki.
You must use Anki every single day- including weekends and holidays – and commit to doing so indefinitely.
Learn in context. Pick a project, and learn only what you need to get it done.
Only add a card to your deck after having tried to use the item of knowledge therein.
Every time you make a mistake carry out a post-mortem and try to figure out the lessons in the experience. Think about what you would need to know to prevent that mistake from occurring again, and turn this insight into new flashcards.
At the end of every project ask yourself what lessons you learned and what you would do differently if you were to repeat the project with the benefit of hindsight.
Delete or modify any incorrect, outdated, difficult to remember, incomplete or unnecessary cards. Update existing cards as improved understanding dawns.
Read code regularly. If you come across something interesting – be that an algorithm, a hack, or an architectural decision – create a card detailing the technique and showing the code.
Deal with disappearing components in tree
Set all components to setImmediate(true)
Accept Criterion for vaadin drag/drop: list as many as you can.
AbstractSelect.AcceptItem,
AbstractSelect.TargetItemIs,
AbstractSelect.VerticalLocationIs,
AcceptAll,
And,
ClientSideCriterion,
ContainsDataFlavor,
Not,
Or,
ServerSideCriterion,
SourceIs,
SourceIsTarget,
Table.TableDropCriterion,
TargetDetailIs,
Tree.TargetInSubtree,
Tree.TargetItemAllowsChildren,
Tree.TreeDropCriterion